public static class ActivityTransition.Builder extends Object
The builder to help create an ActivityTransition
object.
Public Constructor Summary
Builder()
|
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