Feature: Custom Intents Replacement Variables

Overview

Launcher has the ability to invoke Android Intents during certain device or user actions (see Custom Intents for addtional details). Now the launcher supports including Session variables within those custom intents.

How it works

The replacement variables take the format of '${session.KEYNAME}'. If the desired value is within the Session Extended Attributes, then include an 'ex' to indcidate Extended attributes, ie., '${session.ex.token}'.

Example variables:

    ${session.loginId}

    ${session.userName}

    ${session.roles}

    ${session.ex.token}

The replacement variables are processed within the intent EXTRAS. The following shows an example of sending the User Id, Location, and Role to another applciation.

"intents" : {
   "login" : [{
        "action": ""com.some.application.ACTION_FOR_LOGIN"",
        "package": ""com.some.application"",
        "extras": [
            "user_name" : "${session.userId}",
            "site_id" : "${session.location}",
            "role" : "${session.role}""
        ],
        "flags": 1,
        "typeIntent": "a"
      }
    ]
    ...
  },

See Launcher Configurations for more information on the Intents object configurations.

Feature Introduced

Feature Introduced in Launcher 3.x.