| Constructor |
| public MessageOption.Builder() Creates an instance of MessageOption. |
| Return type | Method name |
| MessageOption | build() Creates an instance of MessageOption. |
| 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. |
| Constructor |
| public MessageOption.Builder() |
| Creates an instance of MessageOption. |
| 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 name | Parameter desc |
| permissions | Permissions. |