AccountCreator
public class AccountCreator : LinphoneObject
The AccountCreator
object used to configure an account on a server via
XML-RPC.
-
Enum describing the status of server request.
See moreDeclaration
Swift
public enum Status : Int
-
Enum describing Transport checking.
See moreDeclaration
Swift
public enum TransportStatus : Int
-
Enum describing Domain checking.
See moreDeclaration
Swift
public enum DomainStatus : Int
-
Enum describing Activation code checking.
See moreDeclaration
Swift
public enum ActivationCodeStatus : Int
-
Enum describing language checking.
See moreDeclaration
Swift
public enum LanguageStatus : Int
-
Enum describing Password checking.
See moreDeclaration
Swift
public enum PasswordStatus : Int
-
Enum describing Email checking.
See moreDeclaration
Swift
public enum EmailStatus : Int
-
Enum describing Username checking.
See moreDeclaration
Swift
public enum UsernameStatus : Int
-
Enum describing Phone number checking.
See moreDeclaration
Swift
public enum PhoneNumberStatus : Int
-
Undocumented
Declaration
Swift
public func getDelegate() -> AccountCreatorDelegate?
-
Undocumented
Declaration
Swift
public func addDelegate(delegate: AccountCreatorDelegate)
-
Undocumented
Declaration
Swift
public func removeDelegate(delegate: AccountCreatorDelegate)
-
Get the activation code.
Declaration
Swift
public var activationCode: String { get set }
Return Value
The activation code of the
AccountCreator
-
Get the algorithm configured in the account creator.
Declaration
Swift
public var algorithm: String { get set }
Return Value
The algorithm of the
AccountCreator
-
Set the set_as_default property.
Declaration
Swift
public var asDefault: Bool? { get set }
Parameters
setAsDefault
The set_as_default to set
Return Value
LinphoneAccountCreatorStatusRequestOk if everything is OK, or a specific error otherwise.
-
Get the current LinphoneAccountCreatorCbs object associated with a LinphoneAccountCreator.
Declaration
Swift
public var currentCallbacks: AccountCreatorDelegate? { get }
Return Value
The current LinphoneAccountCreatorCbs object associated with the LinphoneAccountCreator.
-
Get the display name.
Declaration
Swift
public var displayName: String { get set }
Return Value
The display name of the
AccountCreator
-
Get the domain.
Declaration
Swift
public var domain: String { get set }
Return Value
The domain of the
AccountCreator
-
Get the email.
Declaration
Swift
public var email: String { get set }
Return Value
The email of the
AccountCreator
-
Get the ha1.
Declaration
Swift
public var ha1: String { get set }
Return Value
The ha1 of the
AccountCreator
-
Get the language use in email of SMS.
Declaration
Swift
public var language: String { get set }
Return Value
The language of the
AccountCreator
-
Get the password.
Declaration
Swift
public var password: String { get set }
Return Value
The password of the
AccountCreator
-
Get the RFC 3966 normalized phone number.
Declaration
Swift
public var phoneNumber: String { get }
Return Value
The phone number of the
AccountCreator
-
Assign a proxy config pointer to the LinphoneAccountCreator.
Declaration
Swift
public var proxyConfig: ProxyConfig? { get set }
Parameters
cfg
The LinphoneProxyConfig to associate with the LinphoneAccountCreator.
-
Get the set_as_default property.
Declaration
Swift
public var setAsDefault: Bool { get }
Return Value
The set_as_default of the
AccountCreator
-
get Transport
Declaration
Swift
public var transport: TransportType { get set }
Return Value
The transport of
AccountCreator
-
Get the username.
Declaration
Swift
public var username: String { get set }
Return Value
The username of the
AccountCreator
-
Send a request to activate an account on server.
Declaration
Swift
public func activateAccount() -> AccountCreator.Status
Return Value
LinphoneAccountCreatorStatusRequestOk if the request has been sent, LinphoneAccountCreatorStatusRequestFailed otherwise
-
Send a request to activate an alias.
Declaration
Swift
public func activateAlias() -> AccountCreator.Status
Return Value
LinphoneAccountCreatorStatusRequestOk if the request has been sent, LinphoneAccountCreatorStatusRequestFailed otherwise
-
Send a request to create an account on server.
Declaration
Swift
public func createAccount() throws -> AccountCreator.Status
Return Value
LinphoneAccountCreatorStatusRequestOk if the request has been sent, LinphoneAccountCreatorStatusRequestFailed otherwise
-
Create and configure a proxy config and a authentication info for an account creator.
Declaration
Swift
public func createProxyConfig() throws -> ProxyConfig
Return Value
A
ProxyConfig
object if successful, nil otherwise -
Send a request to know if an account is activated on server.
Declaration
Swift
public func isAccountActivated() -> AccountCreator.Status
Return Value
LinphoneAccountCreatorStatusRequestOk if the request has been sent, LinphoneAccountCreatorStatusRequestFailed otherwise
-
Send a request to know the existence of account on server.
Declaration
Swift
public func isAccountExist() -> AccountCreator.Status
Return Value
LinphoneAccountCreatorStatusRequestOk if the request has been sent, LinphoneAccountCreatorStatusRequestFailed otherwise
-
Send a request to know if an account is linked.
Declaration
Swift
public func isAccountLinked() -> AccountCreator.Status
Return Value
LinphoneAccountCreatorStatusRequestOk if the request has been sent, LinphoneAccountCreatorStatusRequestFailed otherwise
-
Send a request to know if an alias is used.
Declaration
Swift
public func isAliasUsed() -> AccountCreator.Status
Return Value
LinphoneAccountCreatorStatusRequestOk if the request has been sent, LinphoneAccountCreatorStatusRequestFailed otherwise
-
Send a request to link an account to an alias.
Declaration
Swift
public func linkAccount() -> AccountCreator.Status
Return Value
LinphoneAccountCreatorStatusRequestOk if the request has been sent, LinphoneAccountCreatorStatusRequestFailed otherwise
-
Send a request to get the password & algorithm of an account using the confirmation key.
Declaration
Swift
public func loginLinphoneAccount() -> AccountCreator.Status
Return Value
LinphoneAccountCreatorStatusRequestOk if everything is OK, or a specific error otherwise.
-
Send a request to recover an account.
Declaration
Swift
public func recoverAccount() -> AccountCreator.Status
Return Value
LinphoneAccountCreatorStatusRequestOk if the request has been sent, LinphoneAccountCreatorStatusRequestFailed otherwise
-
Reset the account creator entries like username, password, phone number…
Declaration
Swift
public func reset()
-
Set the phone number normalized.
Declaration
Swift
public func setPhoneNumber(phoneNumber: String, countryCode: String) -> UInt
Parameters
phoneNumber
The phone number to set
countryCode
Country code to associate phone number with
Return Value
LinphoneAccountCreatorPhoneNumberStatusOk if everything is OK, or specific(s) error(s) otherwise.
-
Send a request to update an account.
Declaration
Swift
public func updateAccount() -> AccountCreator.Status
Return Value
LinphoneAccountCreatorStatusRequestOk if the request has been sent, LinphoneAccountCreatorStatusRequestFailed otherwise