Package io.flutter.plugin.platform
Class PlatformPlugin
java.lang.Object
io.flutter.plugin.platform.PlatformPlugin
Android implementation of the platform plugin.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
ThePlatformPlugin
generally has default behaviors implemented for platform functionalities requested by the Flutter framework. -
Field Summary
-
Constructor Summary
ConstructorDescriptionPlatformPlugin
(Activity activity, PlatformChannel platformChannel) PlatformPlugin
(Activity activity, PlatformChannel platformChannel, PlatformPlugin.PlatformPluginDelegate delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Releases all resources held by thisPlatformPlugin
.void
Refreshes 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
PlatformPlugin
after 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
Window
associated with theActivity
that was provided to thisPlatformPlugin
.
-