A Profile is a device state which can be created, modified, or activated for a user based off of an environmental trigger.
When you tell the system to create a profile, it will be populated within the system settings application’s Profile viewer.
This hub can both be controlled by the Settings application and by a 3rd party application.
Creating a Profile
You must specify the UI information, actions, and optional environmental triggers for a Profile utilizing the methods available within the Profile object.
To add your created Profile to the system, invoke a call to ProfileManager.addProfile(Profile)
To create a ProfileTrigger you’ll need to populate 4 parameters, for something like a trigger based off of a WiFi access point, you can follow the model below:
As you can see we set the TriggerType as WiFI, set the SSID as the triggerId (for tracking), set the title of the access point as the triggerName,
and then finally declare that we want to be “triggered” when an ON_CONNECT is given for the access point.