ActivityTransition.Builder

  • ActivityTransition.Builder is a class used to create ActivityTransition objects.

  • The Builder class has a public constructor and methods for building the object.

  • Key methods include build(), setActivityTransition(int), and setActivityType(int).

  • The build() method constructs the final ActivityTransition object.

  • The setActivityTransition() method adds transition types, and setActivityType() sets the type of activity to detect.

public static class ActivityTransition.Builder extends Object

The builder to help create an ActivityTransition object.

Public Constructor Summary

Public Method Summary

ActivityTransition
build()
Builds a ActivityTransition object.
ActivityTransition.Builder
setActivityTransition(int transition)
Adds an interested transition type.
ActivityTransition.Builder
setActivityType(int activityType)
Sets the type of the activity to be detected.

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

public ActivityTransition build ()

Builds a ActivityTransition object.

public ActivityTransition.Builder setActivityTransition (int transition)

Adds an interested transition type.

Parameters
transition the interested transition type. It's one of the ACTIVITY_TRANSITION_xxx constants.
Returns
  • this builder

public ActivityTransition.Builder setActivityType (int activityType)

Sets the type of the activity to be detected.

Parameters
activityType the type of the activity to be detected. It's one of the constant in DetectedActivity.
Returns
  • this builder