ExtensionContext

The context information of the extension.

public class ExtensionContext {
  public boolean isValid;
  public int uid;
  public String providerName;
  public String extensionName;

  @CalledByNative
  public ExtensionContext() {
    isValid = false;
    uid = 0;
    providerName = "";
    extensionName = "";
  }

  @CalledByNative
  public ExtensionContext(int uid, String providerName, String extensionName) {
    this.isValid = true;
    this.uid = uid;
    this.providerName = providerName;
    this.extensionName = extensionName;
  }
}
Since
v4.4.0

Attributes

isValid
Whether the uid in ExtensionContext is valid:
  • true: The uid is valid.
  • false: The uid is invalid.
uid
The user ID. 0 represents a local user, while greater than 0 represents a remote user.
providerName
The name of the extension provider.
extensionName
The name of the extension.