Package io.flutter.plugin.platform
Class PlatformPlugin
java.lang.Object
io.flutter.plugin.platform.PlatformPlugin
Android implementation of the platform plugin.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThePlatformPlugingenerally has default behaviors implemented for platform functionalities requested by the Flutter framework. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPlatformPlugin(Activity activity, PlatformChannel platformChannel) PlatformPlugin(Activity activity, PlatformChannel platformChannel, PlatformPlugin.PlatformPluginDelegate delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Releases all resources held by thisPlatformPlugin.voidRefreshes Android's window system UI (AKA system chrome) to match Flutter's desiredPlatformChannel.SystemChromeStyle.
-
Field Details
-
DEFAULT_SYSTEM_UI
public static final int DEFAULT_SYSTEM_UI- See Also:
-
-
Constructor Details
-
PlatformPlugin
-
PlatformPlugin
public PlatformPlugin(@NonNull Activity activity, @NonNull PlatformChannel platformChannel, @Nullable PlatformPlugin.PlatformPluginDelegate delegate)
-
-
Method Details
-
destroy
public void destroy()Releases all resources held by thisPlatformPlugin.Do not invoke any methods on a
PlatformPluginafter invoking this method. -
updateSystemUiOverlays
public void updateSystemUiOverlays()Refreshes Android's window system UI (AKA system chrome) to match Flutter's desiredPlatformChannel.SystemChromeStyle.Updating the system UI Overlays is accomplished by altering the decor view of the
Windowassociated with theActivitythat was provided to thisPlatformPlugin.
-