java.lang.Object | |
↳ | cyanogenmod.app.Profile.ProfileTrigger |
A Profile.ProfileTrigger
is a Profile.TriggerType
which can be queried from the OS
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a
Profile.ProfileTrigger based on its type Profile.TriggerType and if
the trigger should fire on a Profile.TriggerState change.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the id associated with the
Profile.ProfileTrigger
| |||||||||||
Get the name associated with the
Profile.ProfileTrigger
| |||||||||||
Get the state associated with the
Profile.ProfileTrigger
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Construct a Profile.ProfileTrigger
based on its type Profile.TriggerType
and if
the trigger should fire on a Profile.TriggerState
change.
Example:
triggerId = trigger.getSSID(); // Use the AP's SSID as identifier triggerName = trigger.getTitle(); // Use the AP's name as the trigger name triggerType = Profile.TriggerType.WIFI; // This is a wifi trigger triggerState = Profile.TriggerState.ON_CONNECT; // On Connect of this, trigger Profile.ProfileTrigger profileTrigger = new Profile.ProfileTrigger(triggerType, triggerId, triggerState, triggerName);
type | a Profile.TriggerType |
---|---|
id | an identifier for the ProfileTrigger |
state | Profile.TriggerState depending on the TriggerType |
name | an identifying name for the ProfileTrigger |
Get the id associated with the Profile.ProfileTrigger
Get the name associated with the Profile.ProfileTrigger
Get the state associated with the Profile.ProfileTrigger