public class ErrorLogResult extends Object implements MethodChannel.Result
MethodChannel.Result that writes error results
to the Android log.| Constructor and Description |
|---|
ErrorLogResult(String tag) |
ErrorLogResult(String tag,
int level) |
| 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.
|
public ErrorLogResult(String tag)
public ErrorLogResult(String tag, int level)
public void success(@Nullable Object result)
MethodChannel.Resultsuccess in interface MethodChannel.Resultresult - The result, possibly null.public void error(String errorCode, @Nullable String errorMessage, @Nullable Object errorDetails)
MethodChannel.Resulterror in interface MethodChannel.ResulterrorCode - An error code String.errorMessage - A human-readable error message String, possibly null.errorDetails - Error details, possibly nullpublic void notImplemented()
MethodChannel.ResultnotImplemented in interface MethodChannel.Result