public class CallbackMap
extends java.lang.Object
| Constructor and Description |
|---|
CallbackMap() |
| Modifier and Type | Method and Description |
|---|---|
android.util.Pair<CordovaPlugin,java.lang.Integer> |
getAndRemoveCallback(int mappedId)
Retrieves and removes a callback stored in the map using the mapped request code
obtained from registerCallback()
|
int |
registerCallback(CordovaPlugin receiver,
int requestCode)
Stores a CordovaPlugin and request code and returns a new unique request code to use
in a permission request.
|
public int registerCallback(CordovaPlugin receiver, int requestCode)
receiver - The plugin that is making the requestrequestCode - The original request code used by the pluginpublic android.util.Pair<CordovaPlugin,java.lang.Integer> getAndRemoveCallback(int mappedId)
mappedId - The request code obtained from registerCallback()