public final class IntentAction extends Object
Intent.getIntentActions()
Modifier and Type | Method and Description |
---|---|
Future<Object> |
execute()
Execute the intent action.
|
void |
execute(Callback callback)
Execute the intent action.
|
String |
getDisplayName()
Get display name of this action.
|
String |
getIcon()
Get icon of this action.
|
public void execute(@NullAllowed Callback callback)
callback
- Callback object that will be notified when the execution
completes. If callback is null, the result will be ignored.@NonNull public Future<Object> execute()
If the result is ignored, it's recommended to use
intentAction.execute(null);
@NonNull public String getDisplayName()