public static classActivityTransition.BuilderextendsObject
The builder to help create anActivityTransition
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
publicBuilder()
Public Methods
publicActivityTransition build()
Builds aActivityTransition
object.
publicActivityTransition.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
publicActivityTransition.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