• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 package io.flutter.embedding.engine.plugins.contentprovider;
6 
7 import android.support.annotation.NonNull;
8 
9 /**
10  * A {@link FlutterPlugin} that wants to know when it is running within a {@link ContentProvider}.
11  */
12 public interface ContentProviderAware {
13   /**
14    * Callback triggered when a {@code ContentProviderAware} {@link FlutterPlugin} is associated with
15    * a {@link ContentProvider}.
16    */
onAttachedToContentProvider(@onNull ContentProviderPluginBinding binding)17   void onAttachedToContentProvider(@NonNull ContentProviderPluginBinding binding);
18 
19   /**
20    * Callback triggered when a {@code ContentProviderAware} {@link FlutterPlugin} is detached from
21    * a {@link ContentProvider}.
22    */
onDetachedFromContentProvider()23   void onDetachedFromContentProvider();
24 }
25