目录

Public Constructor Summary

Constructor
public MessageOption.Builder()
Creates an instance of MessageOption.

Public Method Summary

Return typeMethod name
MessageOptionbuild()
Creates an instance of MessageOption.
MessageOption.BuildersetPermissions(int permissions)
Sets the required permission. For details, please refer to Permission. Ensure that all the publish and subscribe operations are within the provided scope. Otherwise, API calling will fail and the result code STATUS_MESSAGE_MISSING_PERMISSIONS is returned.

Public Constructors

Constructor
public MessageOption.Builder()
Creates an instance of MessageOption.

Public Methods

Method
public MessageOption build()
Creates an instance of MessageOption.
Method
public MessageOption.Builder setPermissions(int permissions)
Sets the required permission. For details, please refer to Permission. Ensure that all the publish and subscribe operations are within the provided scope. Otherwise, API calling will fail and the result code STATUS_MESSAGE_MISSING_PERMISSIONS is returned.

Parameters

Parameter nameParameter desc
permissionsPermissions.