android.support.wearable.activity
Class ConfirmationActivity
java.lang.Object
Activity
android.support.wearable.activity.ConfirmationActivity
public class ConfirmationActivity
- extends Activity
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 invoke a confirmation animation, start this Activity using an Intent populated with the
following extras:
- EXTRA_ANIMATION_TYPE: Which type of confirmation, either SUCCESS_ANIMATION,
OPEN_ON_PHONE_ANIMATION, or FAILURE_ANIMATION.
- EXTRA_MESSAGE: Optional message to include beneath the animation. If omitted, the animation
will be displayed without a message.
|
Method Summary |
void |
onCreate(Bundle savedInstanceState)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EXTRA_MESSAGE
public static final java.lang.String EXTRA_MESSAGE
- See Also:
- Constant Field Values
EXTRA_ANIMATION_TYPE
public static final java.lang.String EXTRA_ANIMATION_TYPE
- See Also:
- Constant Field Values
SUCCESS_ANIMATION
public static final int SUCCESS_ANIMATION
- See Also:
- Constant Field Values
OPEN_ON_PHONE_ANIMATION
public static final int OPEN_ON_PHONE_ANIMATION
- See Also:
- Constant Field Values
FAILURE_ANIMATION
public static final int FAILURE_ANIMATION
- See Also:
- Constant Field Values
ConfirmationActivity
public ConfirmationActivity()
onCreate
public void onCreate(Bundle savedInstanceState)