Class AntPluginPcc.RequestAccessResultHandler<T extends AntPluginPcc>
java.lang.Object
android.os.Handler
com.dsi.ant.plugins.antplus.pccbase.AntPluginPcc.RequestAccessResultHandler<T>
- Type Parameters:
T
- The type of the PCC being requested.
- Direct Known Subclasses:
AntPluginPcc.RequestAccessResultHandler_AsyncSearchByDevNumber
,AntPluginPcc.RequestAccessResultHandler_UI
- Enclosing class:
- AntPluginPcc
protected static class AntPluginPcc.RequestAccessResultHandler<T extends AntPluginPcc>
extends android.os.Handler
Used to define how the request access results are handled.
This base class handles reporting the results of SUCCESS, and the errors
DEPENDENCYNOTINSTALLED, OTHERFAILURE, USERCANCELLED, and CHANNELNOTAVAILABLE.
-
Nested Class Summary
Nested classes/interfaces inherited from class android.os.Handler
android.os.Handler.Callback
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AntPluginPcc.IPluginAccessResultReceiver<T>
protected T
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleMessage
(android.os.Message msg) void
handleRequestAccessFailed
(String errorMessage, RequestAccessResult result) boolean
handleRequestAccessResult
(android.os.Message msg) Handles the request access result received from the plugin.protected void
setReturnInfo
(T retPccObject, AntPluginPcc.IPluginAccessResultReceiver<T> resultReceiver) Methods inherited from class android.os.Handler
createAsync, createAsync, dispatchMessage, dump, getLooper, getMessageName, hasCallbacks, hasMessages, hasMessages, obtainMessage, obtainMessage, obtainMessage, obtainMessage, obtainMessage, post, postAtFrontOfQueue, postAtTime, postAtTime, postDelayed, postDelayed, removeCallbacks, removeCallbacks, removeCallbacksAndMessages, removeMessages, removeMessages, sendEmptyMessage, sendEmptyMessageAtTime, sendEmptyMessageDelayed, sendMessage, sendMessageAtFrontOfQueue, sendMessageAtTime, sendMessageDelayed, toString
-
Field Details
-
retPccObject
-
resultReceiver
-
-
Constructor Details
-
RequestAccessResultHandler
public RequestAccessResultHandler()
-
-
Method Details
-
setReturnInfo
protected void setReturnInfo(T retPccObject, AntPluginPcc.IPluginAccessResultReceiver<T> resultReceiver) -
handleMessage
public void handleMessage(android.os.Message msg) - Overrides:
handleMessage
in classandroid.os.Handler
-
handleRequestAccessResult
public boolean handleRequestAccessResult(android.os.Message msg) Handles the request access result received from the plugin. Override this method to catch custom returns- Parameters:
msg
- The message returned from the plugin containing the result.- Returns:
- True if a response was handled, false otherwise.
-
handleRequestAccessFailed
-