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 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 @NonNull String

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

static final @NonNull String

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

static final @NonNull 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 @NonNull int
static final @NonNull int
static final @NonNull int

Public methods

@Override @NonNull void
onCreate(@NonNull Bundle savedInstanceState)

Inherited methods

From class Activity
@NonNull void
@NonNull void
@NonNull void
@NonNull PendingIntent
createPendingResult(
    @NonNull int requestCode,
    @NonNull Intent data,
    @NonNull int flags
)
final @NonNull void

This method is deprecated.

final @NonNull void
@NonNull boolean
@NonNull boolean
@NonNull boolean
@NonNull boolean
@NonNull boolean
@NonNull boolean
@NonNull void
dump(
    @NonNull String prefix,
    @NonNull FileDescriptor fd,
    @NonNull PrintWriter writer,
    @NonNull Array<@NonNull String> args
)
@NonNull void

This method is deprecated.

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

This method is deprecated.

@NonNull void
@NonNull void
@NonNull void
@NonNull void

This method is deprecated.

@NonNull ActionBar
final @NonNull Application
@NonNull ComponentName
@NonNull String
@NonNull int
@NonNull ComponentName
@NonNull Scene
@NonNull TransitionManager
@NonNull View
@NonNull FragmentManager

This method is deprecated.

@NonNull Intent
@NonNull Object
@NonNull LayoutInflater
@NonNull LoaderManager

This method is deprecated.

@NonNull String
@NonNull int
final @NonNull MediaController
@NonNull MenuInflater
final @NonNull Activity
@NonNull Intent
@NonNull SharedPreferences
@NonNull Uri
@NonNull int
final @NonNull SearchEvent
final @NonNull SplashScreen
@NonNull Object
@NonNull int
final @NonNull CharSequence
final @NonNull int
@NonNull VoiceInteractor
final @NonNull int
@NonNull Window
@NonNull WindowManager
@NonNull boolean
@NonNull void
@NonNull boolean
@NonNull boolean
final @NonNull boolean
@NonNull boolean
@NonNull boolean
@NonNull boolean
@NonNull boolean
@NonNull boolean
@NonNull boolean
@NonNull boolean
@NonNull boolean
@NonNull boolean
@NonNull boolean
final @NonNull Cursor
managedQuery(
    @NonNull Uri uri,
    @NonNull Array<@NonNull String> projection,
    @NonNull String selection,
    @NonNull Array<@NonNull String> selectionArgs,
    @NonNull String sortOrder
)

This method is deprecated.

@NonNull boolean
moveTaskToBack(@NonNull boolean nonRoot)
@NonNull boolean
@NonNull boolean

This method is deprecated.

@NonNull void
@NonNull void
@NonNull void
onActivityReenter(@NonNull int resultCode, @NonNull Intent data)
@NonNull void

This method is deprecated.

@NonNull void
@NonNull void
@NonNull void
@NonNull void