java.lang.Object | |
↳ | lineageos.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);
Parameters | |
---|---|
type |
int : a Profile.TriggerType |
id |
String : an identifier for the ProfileTrigger |
state |
int : Profile.TriggerState depending on the TriggerType |
name |
String : an identifying name for the ProfileTrigger
|
Get the id associated with the Profile.ProfileTrigger
Returns | |
---|---|
String |
an string identifier |
Get the name associated with the Profile.ProfileTrigger
Returns | |
---|---|
String |
a string name |
Get the state associated with the Profile.ProfileTrigger
Returns | |
---|---|
int |
an integer indicating the state |
Get the Profile.ProfileTrigger
Profile.TriggerType
Returns | |
---|---|
int |
Profile.TriggerType
|
Parameters | |
---|---|
dest |
Parcel |
flags |
int |