Intent API - Profiles

PLEASE NOTE: THE USAGE OF THIS FEATURE IS RESTRICTED AND ONLY AVAILABLE AS BETA THROUGH OUR EARLY ACCESS PROGRAM. PLEASE FILL OUT THE REGISTRATION FORM TO APPLY.

Configuration profile wraps MARK configuration and Workflow Rules. Profiles are identified with a uniquie profile name (id).

More details about profiles and their behavior can be found here.

Profile commands, like all commands that trigger an action on MARK, will by default be queued in ProGlove Connect. By providing a Boolean valued extra com.proglove.api.extra.REPLACE_QUEUE, this behaviour can be changed to replace the queue with this new command. For more Information about the queueing behaviour click here.

Activating profile

To change active configuration profile, broadcast an intent with the following data:

  • Action: com.proglove.api.CHANGE_CONFIG_PROFILE
  • Extra: String in com.proglove.api.extra.CONFIG_PROFILE_ID

Activation is successful if profile with the specified id exists in the configuration file and the MARK device is connected.

Example code:

val profileName: String = "myProfileToSet"

val intent = Intent()
intent.setAction("com.proglove.api.CHANGE_CONFIG_PROFILE")
intent.putExtra("com.proglove.api.extra.CONFIG_PROFILE_ID", profileName)
sendBroadcast(intent)