Package io.flutter.plugin.common
Class ErrorLogResult
- java.lang.Object
-
- io.flutter.plugin.common.ErrorLogResult
-
- All Implemented Interfaces:
MethodChannel.Result
public class ErrorLogResult extends Object implements MethodChannel.Result
An implementation ofMethodChannel.Result
that writes error results to the Android log.
-
-
Constructor Summary
Constructors Constructor Description ErrorLogResult(String tag)
ErrorLogResult(String tag, int level)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
success
public void success(@Nullable Object result)
Description copied from interface:MethodChannel.Result
Handles a successful result.- Specified by:
success
in interfaceMethodChannel.Result
- Parameters:
result
- The result, possibly null. The result must be an Object type supported by the codec. For instance, if you are usingStandardMessageCodec
(default), please see its documentation on what types are supported.
-
error
public void error(String errorCode, @Nullable String errorMessage, @Nullable Object errorDetails)
Description copied from interface:MethodChannel.Result
Handles an error result.- Specified by:
error
in interfaceMethodChannel.Result
- Parameters:
errorCode
- An error code String.errorMessage
- A human-readable error message String, possibly null.errorDetails
- Error details, possibly null. The details must be an Object type supported by the codec. For instance, if you are usingStandardMessageCodec
(default), please see its documentation on what types are supported.
-
notImplemented
public void notImplemented()
Description copied from interface:MethodChannel.Result
Handles a call to an unimplemented method.- Specified by:
notImplemented
in interfaceMethodChannel.Result
-
-