zdk.objc
|
Account information and control provider. More...
#import <ZDKAccountProvider.h>
Instance Methods | |
(id< ZDKAccount >) | - createUserAccount |
Creates a new user account. More... | |
(void) | - deleteUserAccount: |
Destroys an user account. More... | |
(id< ZDKAccount > _Nullable) | - getAccount: |
Gets the account with the specified ID. More... | |
(BOOL) | - setAsDefaultAccount: |
Sets the default account. More... | |
(void) | - unregisterAllAccounts |
Unregisters all accounts. More... | |
(id< ZDKAccountConfig >) | - createAccountConfiguration |
Creates a new empty account configuration. More... | |
(id< ZDKMSRPConfig >) | - createMSRPConfiguration |
Creates a new empty MSRP configuration. More... | |
(id< ZDKStunConfig >) | - createStunConfiguration |
Creates a new empty STUN configuration. More... | |
(id< ZDKIAXConfig >) | - createIAXConfiguration |
Creates a new empty IAX configuration. More... | |
(id< ZDKSIPConfig >) | - createSIPConfiguration |
Creates a new empty SIP configuration. More... | |
(id< ZDKZRTPConfig >) | - createZRTPConfiguration |
Creates a new empty ZRTP configuration. More... | |
(id< ZDKPushConfig >) | - createPushConfiguration |
Creates a new empty Push configuration. More... | |
(id< ZDKHeaderField >) | - createSIPHeaderField:values:method: |
Creates a SIP header. More... | |
(void) | - addAccountProviderListener: |
Adds a new account provider event listener. More... | |
(void) | - dropAccountProviderListener: |
Removes a specific already added account provider event listener. More... | |
(NSString *) | - handlesDescription |
![]() | |
(long int) | - handle |
(void) | - initialize |
(void) | - releaseReference |
(NSString *) | - handlesDescription |
Properties | |
NSArray< id< ZDKAccount > > * | listAccounts |
Gets a list with all active accounts. More... | |
int | accountsCount |
Gets the count of all active accounts. More... | |
id< ZDKAccount > _Nullable | defaultAccount |
Gets the default account. More... | |
Account information and control provider.
Manages creation and destruction of user accounts and provides information regarding them.
- (void) addAccountProviderListener: | (id< ZDKAccountProviderEventsHandler >) | value |
Adds a new account provider event listener.
All added listeners will be notified for each event.
[in] | value | The account provider event listener to be added |
- (id< ZDKAccountConfig >) createAccountConfiguration |
Creates a new empty account configuration.
- (id< ZDKIAXConfig >) createIAXConfiguration |
Creates a new empty IAX configuration.
- (id< ZDKMSRPConfig >) createMSRPConfiguration |
Creates a new empty MSRP configuration.
- (id< ZDKPushConfig >) createPushConfiguration |
Creates a new empty Push configuration.
- (id< ZDKSIPConfig >) createSIPConfiguration |
Creates a new empty SIP configuration.
- (id< ZDKHeaderField >) createSIPHeaderField: | (NSString *) | name | |
values: | (NSArray *) | values | |
method: | (ZDKSipMethodTypes) | method | |
Creates a SIP header.
[in] | name | The NAME of the header |
[in] | values | List with header VALUES |
[in] | method | SIP METHOD this header to be added to |
- (id< ZDKStunConfig >) createStunConfiguration |
Creates a new empty STUN configuration.
- (id< ZDKAccount >) createUserAccount |
Creates a new user account.
Creates a new user that can be used to register on a server for incoming calls, create outgoing calls, subscribe for presence, etc. This is a mandatory operation before using most of the library's functions.
This call will only prepare the structures for the user account. It will not be registered to the server until registerAccount() is called (note that registration is not a mandatory operation).
- (id< ZDKZRTPConfig >) createZRTPConfiguration |
Creates a new empty ZRTP configuration.
- (void) deleteUserAccount: | (id< ZDKAccount >) | account |
Destroys an user account.
Destroys an user account object and all related structures. If the user has active calls, they will be terminated first.
[in] | account | The account to be destroyed |
- (void) dropAccountProviderListener: | (id< ZDKAccountProviderEventsHandler >) | value |
Removes a specific already added account provider event listener.
All added/left listeners will be notified for each event.
[in] | value | The account provider event listener to be removed |
- (id< ZDKAccount > _Nullable) getAccount: | (long int) | hAccountId |
Gets the account with the specified ID.
Returns the account with the specified ID if exist, otherwise a null pointer is returned.
[in] | hAccountId | The ID of the requested account |
- (NSString *) handlesDescription |
Reimplemented from <ZDKZHandle>.
- (BOOL) setAsDefaultAccount: | (id< ZDKAccount > _Nullable) | account |
Sets the default account.
[in] | account | The default account |
- (void) unregisterAllAccounts |
Unregisters all accounts.
If the user account is in the process of registration this function will cancel it. If the user was already registered an unregistration process will start. If there is no error the function will return immediately and the final result will be delivered via a callback.
|
readnonatomicassign |
Gets the count of all active accounts.
|
readnonatomicassign |
Gets the default account.
|
readnonatomicassign |