Package io.flutter.plugin.platform
Class PlatformPlugin
- java.lang.Object
-
- io.flutter.plugin.platform.PlatformPlugin
-
public class PlatformPlugin extends Object
Android implementation of the platform plugin.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePlatformPlugin.PlatformPluginDelegateThePlatformPlugingenerally has default behaviors implemented for platform functionalities requested by the Flutter framework.
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_SYSTEM_UI
-
Constructor Summary
Constructors Constructor Description PlatformPlugin(Activity activity, PlatformChannel platformChannel)PlatformPlugin(Activity activity, PlatformChannel platformChannel, PlatformPlugin.PlatformPluginDelegate delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Releases all resources held by thisPlatformPlugin.voidupdateSystemUiOverlays()Refreshes Android's window system UI (AKA system chrome) to match Flutter's desiredPlatformChannel.SystemChromeStyle.
-
-
-
Field Detail
-
DEFAULT_SYSTEM_UI
public static final int DEFAULT_SYSTEM_UI
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PlatformPlugin
public PlatformPlugin(@NonNull Activity activity, @NonNull PlatformChannel platformChannel)
-
PlatformPlugin
public PlatformPlugin(@NonNull Activity activity, @NonNull PlatformChannel platformChannel, @NonNull PlatformPlugin.PlatformPluginDelegate delegate)
-
-
Method Detail
-
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.
-
-