STWAccount Settings
This class represent all settings related to the account.
Functions
Link copied to clipboard
open fun deleteUserPicture(@NonNull context: Context, @Nullable callback: STWOperationCallback<STWAccountSettingsError>)
Content copied to clipboard
Call this method to delete the user profile picture
Link copied to clipboard
Link copied to clipboard
open fun exportSettings(@NonNull context: Context, @Nullable callback: STWExportSettingsCallback)
Content copied to clipboard
Method to export settings in order to share them with other contacts.
Link copied to clipboard
The email of the administrator to be contacted in case of issues (can be an empty string)
Link copied to clipboard
The name of the administrator to be contacted in case of issues (can be an empty string)
Link copied to clipboard
Calle this method to retrieve the application link
Link copied to clipboard
The total size in bytes of message attachments.
Link copied to clipboard
Call this method to get the CompanyID
Link copied to clipboard
The used storage in percentage.
Link copied to clipboard
Account settings instance.
Link copied to clipboard
The maximum size of subscriber picture in kilo bytes who can be uploaded by user.
Link copied to clipboard
The maximum allowed storage in bytes.
Link copied to clipboard
Link copied to clipboard
The total size in bytes of processes.
Link copied to clipboard
Call this method to get the human friendly name of the SIP server.
Link copied to clipboard
The percentage after which the alert notifications must be displayed to the user
Link copied to clipboard
The percentage after which the warning notifications must be displayed to the user
Link copied to clipboard
The used storage in bytes.
Link copied to clipboard
Call this method to get the status of alias
Link copied to clipboard
Call this method to retrieve the User Availability status
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Get get display name of the current user
Link copied to clipboard
Get the PhoneItem corresponding to the current user account
Link copied to clipboard
open fun importSettings( @NonNull context: Context, @NonNull attachmentId: String, @Nullable callback: ImportSettingsCallBack)
Content copied to clipboard
Content copied to clipboard
Method to import and apply settings received from other contacts.
Link copied to clipboard
Call this method to check if the modification of alias from client is allowed or not
Link copied to clipboard
Call this method to check if the CloudStorage is enabled.
Link copied to clipboard
open fun isDisplayDisconnectedUsersAllowed(@NonNull context: Context): Boolean
Content copied to clipboard
Call this method to check if display diconnected users when not reachable is allowed or not
Link copied to clipboard
Whether the attachments are counted in the storage quota or not
Link copied to clipboard
Method to check if the OperationalStatus feature is enabled ot not
Link copied to clipboard
Whether the processes are counted in the storage quota
Link copied to clipboard
open fun isProfileModificationsFromClientAllowed(@NonNull context: Context): Boolean
Content copied to clipboard
Call this method to check whether the user can modified his profile status/picture or not
Link copied to clipboard
Call this method to check if Alias feature is allowed or not
Link copied to clipboard
Whether the subscriber user availability feature is enabled in backend or not
Link copied to clipboard
open fun loadCompanyLogo(@NonNull imageView: ImageView, @Nullable callback: STWOperationCallback<STWAccountSettingsError>)
Content copied to clipboard
Call this method to retrieve the current company logo
Link copied to clipboard
open fun loadUserPicture( @NonNull context: Context, @NonNull lifecycle: Lifecycle, @NonNull imageView: ImageView, @Nullable defaultContactIconResources: DefaultContactIconResources)
Content copied to clipboard
Try to load asynchronously the user picture in the imageView.
Link copied to clipboard
Register to all events related to the account
Link copied to clipboard
open fun registerCompanyInformationChanged(@NonNull listener: STWCompanyInformationChanged)
Content copied to clipboard
Register to all events related to the company information
Link copied to clipboard
open fun registerForDisconnectedUserFeatureChanged(@NonNull disconnectedUserFeatureChangedListener: STWDisconnectedUserFeatureChangedListener)
Content copied to clipboard
Call this method to register for events related to connected user feature
Link copied to clipboard
open fun registerToAliasEvents(@NonNull aliasCallback: STWUserCustomAliasCallback)
Content copied to clipboard
Call this method to register for events related to user alias feature
Link copied to clipboard
Content copied to clipboard
Call this method to register for events related to the user availability allowed or not.
Link copied to clipboard
open fun registerToCloudStorageEvents(@NonNull cloudStorageCallback: STWCloudStorageCallback)
Content copied to clipboard
Listen to the cloud storage events
Link copied to clipboard
open fun registerToDisplayNameOrderEvents(@NonNull displayNameOrderCallback: STWDisplayNameOrderListener)
Content copied to clipboard
Listen to the display name order events
Link copied to clipboard
open fun registerToOperationalStatusEvents(@NonNull operationStatusCallback: STWOperationStatusListener)
Content copied to clipboard
Listen to the operational status events
Link copied to clipboard
open fun registerToRoleIconEvents(@NonNull roleIconCallback: STWRoleIconListener)
Content copied to clipboard
Listen to the role icon events
Link copied to clipboard
open fun registerToServerNameChanges(@NonNull serverNameCallback: STWServerNameCallback)
Content copied to clipboard
Listen to the server name changes when the client switches between servers
Link copied to clipboard
open fun registerToUserAvailability(@NonNull listener: STWUserAvailabilityListener)
Content copied to clipboard
Call this method to register to the changing of the User Availability status.
Link copied to clipboard
open fun registerToUserCustomStatus(@NonNull listener: STWUserCustomStatusCallback)
Content copied to clipboard
Call this method to register to the changing of the User custom status.
Link copied to clipboard
Call this method to ask for the cloud quota storage values from the backend.
Link copied to clipboard
open fun resetSettings(@NonNull context: Context, @NonNull operationCallback: STWOperationCallback<STWAccountSettingsError>)
Content copied to clipboard
Call this method to reset all settings related to the account.
Link copied to clipboard
Unregister a previously registered account information listener
Link copied to clipboard
open fun unregisterCompanyInformationChanged(@NonNull listener: STWCompanyInformationChanged)
Content copied to clipboard
Unregister a previously registered company information listener
Link copied to clipboard
open fun unregisterForDisconnectedUserFeatureChanged(@NonNull disconnectedUserFeatureChangedListener: STWDisconnectedUserFeatureChangedListener)
Content copied to clipboard
Call this method to unregister from events related to connected user feature
Link copied to clipboard
open fun unregisterFromAliasEvents(@NonNull aliasCallback: STWUserCustomAliasCallback)
Content copied to clipboard
Call this method to unregister from events related to user alias feature
Link copied to clipboard
open fun unregisterFromAllowUserAvailabilityEvents(@NonNull allowUserAvailabilityCallback: STWAllowUserAvailabilityListener)
Content copied to clipboard
Call this method to register for events related to the user availability allowed or not.
Link copied to clipboard
open fun unregisterFromDisplayNameOrderEvents(@NonNull displayNameOrderCallback: STWDisplayNameOrderListener)
Content copied to clipboard
Stop listening to the display name order events
Link copied to clipboard
open fun unregisterFromOperationalStatusEvents(@NonNull operationStatusCallback: STWOperationStatusListener)
Content copied to clipboard
Stop listening to the operational status events
Link copied to clipboard
open fun unregisterFromRoleIconEvents(@NonNull roleIconCallback: STWRoleIconListener)
Content copied to clipboard
Stop listening to the role icon events
Link copied to clipboard
open fun unregisterServerNameChanges(@NonNull serverNameCallback: STWServerNameCallback)
Content copied to clipboard
Stop listening to the server name changes when the client switches between servers
Link copied to clipboard
open fun unregisterToCloudStorageEvents(@NonNull cloudStorageCallback: STWCloudStorageCallback)
Content copied to clipboard
Stop listening to the cloud storage events
Link copied to clipboard
open fun unregisterToUserAvailability(@NonNull listener: STWUserAvailabilityListener)
Content copied to clipboard
Call this method to unregister from the changign of the User Availability status.
Link copied to clipboard
open fun unregisterToUserCustomStatus(@NonNull listener: STWUserCustomStatusCallback)
Content copied to clipboard
Call this method to unregister from the changing of the User custom status.
Link copied to clipboard
open fun updateDisplayNameOrder( @NonNull context: Context, @NonNull displayNameOrderValue: String, @Nullable callback: STWOperationCallback<STWAccountSettingsError>)
Content copied to clipboard
Call this method to change the display name order
Link copied to clipboard
open fun updateUserAvailability( @NonNull context: Context, userAvailabilityValue: Int, @Nullable callback: STWOperationCallback<STWAccountSettingsError>)
Content copied to clipboard
Call this method to change the user availability
Link copied to clipboard
open fun updateUserCustomAlias( @NonNull context: Context, @NonNull newCustomAlias: String, @Nullable callBack: STWOperationCallback<STWAccountSettingsError>)
Content copied to clipboard
Call this method to update the user custom alias
Link copied to clipboard
open fun updateUserCustomStatus( @NonNull context: Context, @NonNull newCustomStatus: String, @Nullable callBack: STWOperationCallback<STWAccountSettingsError>)
Content copied to clipboard
Call this method to update the user custom status
Link copied to clipboard
open fun updateUserOperationalStatus( @NonNull context: Context, operationalStatusId: Int, @Nullable callBack: STWOperationCallback<STWAccountSettingsError>)
Content copied to clipboard
Update and synchronize user operational status
Link copied to clipboard
open fun uploadUserPicture( @NonNull context: Context, @NonNull file: File, @Nullable callback: STWOperationCallback<STWAccountSettingsError>)
Content copied to clipboard
Call this method to update the user profile picture