Interface ServiceAware
-
public interface ServiceAware
AFlutterPlugin
that wants to know when it is running within aService
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ServiceAware.OnModeChangeListener
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onAttachedToService(ServicePluginBinding binding)
void
onDetachedFromService()
-
-
-
Method Detail
-
onAttachedToService
void onAttachedToService(@NonNull ServicePluginBinding binding)
-
onDetachedFromService
void onDetachedFromService()
Callback triggered when aServiceAware
FlutterPlugin
is detached from aService
.Any
Lifecycle
listeners that were registered inonAttachedToService(ServicePluginBinding)
should be deregistered here to avoid a possible memory leak and other side effects.
-
-