public static interface MethodChannel.Result
All methods of this class must be called on the platform thread (Android main thread). For more details see Threading in the Flutter Engine.
Modifier and Type | Method and Description |
---|---|
void |
error(String errorCode,
String errorMessage,
Object errorDetails)
Handles an error result.
|
void |
notImplemented()
Handles a call to an unimplemented method.
|
void |
success(Object result)
Handles a successful result.
|
void success(@Nullable Object result)
result
- The result, possibly null.void error(String errorCode, @Nullable String errorMessage, @Nullable Object errorDetails)
errorCode
- An error code String.errorMessage
- A human-readable error message String, possibly null.errorDetails
- Error details, possibly nullvoid notImplemented()