public class PlatformPlugin extends Object implements MethodChannel.MethodCallHandler, ActivityLifecycleListener
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SYSTEM_UI |
Constructor and Description |
---|
PlatformPlugin(Activity activity) |
Modifier and Type | Method and Description |
---|---|
void |
onMethodCall(MethodCall call,
MethodChannel.Result result)
Handles the specified method call received from Flutter.
|
void |
onPostResume() |
public static final int DEFAULT_SYSTEM_UI
public PlatformPlugin(Activity activity)
public void onMethodCall(MethodCall call, MethodChannel.Result result)
MethodChannel.MethodCallHandler
Handler implementations must submit a result for all incoming calls, by making a single call
on the given MethodChannel.Result
callback. Failure to do so will result in lingering Flutter result
handlers. The result may be submitted asynchronously. Calls to unknown or unimplemented methods
should be handled using MethodChannel.Result.notImplemented()
.
Any uncaught exception thrown by this method will be caught by the channel implementation and logged, and an error result will be sent back to Flutter.
The handler is called on the platform thread (Android main thread). For more details see Threading in the Flutter Engine.
onMethodCall
in interface MethodChannel.MethodCallHandler
call
- A MethodCall
.result
- A MethodChannel.Result
used for submitting the result of the call.public void onPostResume()
onPostResume
in interface ActivityLifecycleListener