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