ConfirmationActivity

public class ConfirmationActivity


This Activity is used to display confirmation animations after the user completes an action on the wearable. There are three types of confirmations: Success: the action was completed successfully on the wearable. Failure: the action failed to complete. Open on Phone: the action has caused something to display on the phone, or in order to complete the action, the user will need to go to their phone to continue.

It is the responsibility of the wearable application developer to determine whether the action has succeeded, failed, or requires the user to go to their phone, and trigger the appropriate confirmation.

To configure the confirmation according to the result of the action, set the extra EXTRA_ANIMATION_TYPE to one of the following values:

An optional message, included in the extra EXTRA_MESSAGE will be displayed horizontally centered below the animation.

An optional duration in milliseconds to keep the confirmation activity visible for, included in the extra EXTRA_ANIMATION_DURATION_MILLIS

Summary

Constants

static final String

The lookup key for an optional int that defines the duration in milliseconds that the confirmation activity should be displayed.

static final String

The lookup key for an optional int that defines the animation type that should be displayed.

static final String

Used as a string extra field on an intent for this activity to define the message that should be displayed to the user while the activity is visible.

static final int
static final int
static final int

Public constructors

Public methods

@Override void
onCreate(Bundle savedInstanceState)

Inherited methods

From class Activity
void
void
void
PendingIntent
createPendingResult(int requestCode, Intent data, int flags)
final void
dismissDialog(int id)

This method is deprecated.

final void
boolean
boolean
boolean
boolean
boolean
boolean
void
dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args)
void

This method is deprecated.

boolean
T
<T extends View> findViewById(int id)
void
void
finishActivity(int requestCode)
void
finishActivityFromChild(Activity child, int requestCode)

This method is deprecated.

void
void
void
void

This method is deprecated.

ActionBar
final Application
ComponentName
String
int
ComponentName
Scene
TransitionManager