getNamespace()

Retrieves the namespace prefix of the canvas app.

public String getNamespace()

Type: String

Use this method to get the Salesforce namespace prefix that’s associated with the canvas app.