public abstract class Factory
extends java.lang.Object
Constructor and Description |
---|
Factory() |
Modifier and Type | Method and Description |
---|---|
abstract Address |
createAddress(java.lang.String addr)
Parse a string holding a SIP URI and create the according
Address
object. |
abstract AuthInfo |
createAuthInfo(java.lang.String username,
java.lang.String userid,
java.lang.String passwd,
java.lang.String ha1,
java.lang.String realm,
java.lang.String domain)
Creates a
AuthInfo object. |
abstract AuthInfo |
createAuthInfo(java.lang.String username,
java.lang.String userid,
java.lang.String passwd,
java.lang.String ha1,
java.lang.String realm,
java.lang.String domain,
java.lang.String algorithm)
Creates a
AuthInfo object. |
abstract Buffer |
createBuffer()
Creates an object
Buffer . |
abstract Buffer |
createBufferFromData(byte[] data,
int size)
Creates an object
Buffer . |
abstract Buffer |
createBufferFromString(java.lang.String data)
Creates an object
Buffer . |
abstract Config |
createConfig(java.lang.String path)
Creates an object
Config . |
abstract Config |
createConfigFromString(java.lang.String data)
Creates an object
Config . |
abstract Config |
createConfigWithFactory(java.lang.String path,
java.lang.String factoryPath)
Creates an object
Config . |
abstract Content |
createContent()
Creates an object
Content . |
abstract Core |
createCore(java.lang.String configPath,
java.lang.String factoryConfigPath,
java.lang.Object systemContext)
Instantiate a
Core object. |
abstract Core |
createCoreWithConfig(Config config,
java.lang.Object systemContext)
Instantiate a
Core object with a given LinphoneConfig. |
abstract ErrorInfo |
createErrorInfo()
Creates an object LinphoneErrorInfo.
|
abstract OpenH264DownloadHelper |
createOpenH264DownloadHelper(android.content.Context context) |
abstract ParticipantDeviceIdentity |
createParticipantDeviceIdentity(Address address,
java.lang.String name)
Create a #LinphoneParticipantDeviceIdentity object.
|
abstract Range |
createRange()
Creates an object LinphoneRange.
|
abstract Transports |
createTransports()
Creates an object LinphoneTransports.
|
abstract TunnelConfig |
createTunnelConfig()
Creates an object
TunnelConfig . |
abstract Vcard |
createVcard()
Create an empty
Vcard . |
abstract VideoActivationPolicy |
createVideoActivationPolicy()
Creates an object LinphoneVideoActivationPolicy.
|
abstract VideoDefinition |
createVideoDefinition(int width,
int height)
Create a
VideoDefinition from a given width and height. |
abstract VideoDefinition |
createVideoDefinitionFromName(java.lang.String name)
Create a
VideoDefinition from a given standard definition name. |
abstract void |
enableLogCollection(LogCollectionState state)
Enables or disables log collection.
|
abstract java.lang.String |
getConfigDir(java.lang.Object context)
Get the config path.
|
abstract Core |
getCore(long ptr) |
abstract java.lang.String |
getDataDir(java.lang.Object context)
Get the data path.
|
abstract java.lang.String |
getDataResourcesDir()
Get the directory where the data resources are located.
|
abstract DialPlan[] |
getDialPlans()
Returns a bctbx_list_t of all DialPlans.
|
abstract java.lang.String |
getDownloadDir(java.lang.Object context)
Get the download path.
|
abstract java.lang.String |
getImageResourcesDir()
Get the directory where the image resources are located.
|
abstract LoggingService |
getLoggingService()
Gets the LoggingService singleton
|
abstract java.lang.String |
getMspluginsDir()
Get the directory where the mediastreamer2 plugins are located.
|
abstract java.lang.String |
getRingResourcesDir()
Get the directory where the ring resources are located.
|
abstract java.lang.String |
getSoundResourcesDir()
Get the directory where the sound resources are located.
|
abstract VideoDefinition[] |
getSupportedVideoDefinitions()
Get the list of standard video definitions supported by Linphone.
|
abstract java.lang.String |
getTopResourcesDir()
Get the top directory where the resources are located.
|
abstract java.lang.Object |
getUserData()
Gets the object stored in this object user's data
|
static Factory |
instance() |
abstract boolean |
isChatroomBackendAvailable(ChatRoomBackend chatroomBackend)
Indicates if the given LinphoneChatRoomBackend is available.
|
abstract boolean |
isDatabaseStorageAvailable()
Indicates if the storage in database is available.
|
abstract boolean |
isImdnAvailable()
Indicates if IMDN are available.
|
abstract void |
setDataResourcesDir(java.lang.String path)
Set the directory where the data resources are located.
|
abstract void |
setDebugMode(boolean enable,
java.lang.String tag) |
abstract void |
setImageResourcesDir(java.lang.String path)
Set the directory where the image resources are located.
|
abstract void |
setLogCollectionPath(java.lang.String path)
Sets the log collection path.
|
abstract void |
setMspluginsDir(java.lang.String path)
Set the directory where the mediastreamer2 plugins are located.
|
abstract void |
setRingResourcesDir(java.lang.String path)
Set the directory where the ring resources are located.
|
abstract void |
setSoundResourcesDir(java.lang.String path)
Set the directory where the sound resources are located.
|
abstract void |
setTopResourcesDir(java.lang.String path)
Set the top directory where the resources are located.
|
abstract void |
setUserData(java.lang.Object data)
Sets the object to store in this object user's data
|
public static final Factory instance()
public abstract OpenH264DownloadHelper createOpenH264DownloadHelper(android.content.Context context)
public abstract LoggingService getLoggingService()
public abstract void setDebugMode(boolean enable, java.lang.String tag)
public abstract Core getCore(long ptr)
public abstract java.lang.String getDataResourcesDir()
public abstract void setDataResourcesDir(java.lang.String path)
path
- The path where the data resources are locatedpublic abstract DialPlan[] getDialPlans()
DialPlan
objects. LinphoneDialPlan a list of
DialPlanpublic abstract java.lang.String getImageResourcesDir()
public abstract void setImageResourcesDir(java.lang.String path)
path
- The path where the image resources are locatedpublic abstract boolean isDatabaseStorageAvailable()
public abstract boolean isImdnAvailable()
public abstract void setLogCollectionPath(java.lang.String path)
path
- the path of the logspublic abstract java.lang.String getMspluginsDir()
public abstract void setMspluginsDir(java.lang.String path)
path
- The path to the directory where the mediastreamer2 plugins are
locatedpublic abstract java.lang.String getRingResourcesDir()
public abstract void setRingResourcesDir(java.lang.String path)
path
- The path where the ring resources are locatedpublic abstract java.lang.String getSoundResourcesDir()
public abstract void setSoundResourcesDir(java.lang.String path)
path
- The path where the sound resources are locatedpublic abstract VideoDefinition[] getSupportedVideoDefinitions()
VideoDefinition
objects. LinphoneVideoDefinitionpublic abstract java.lang.String getTopResourcesDir()
public abstract void setTopResourcesDir(java.lang.String path)
path
- The path to the top directory where the resources are locatedpublic abstract Address createAddress(java.lang.String addr)
Address
object.addr
- A string holding the SIP URI to parse.Address
.public abstract AuthInfo createAuthInfo(java.lang.String username, java.lang.String userid, java.lang.String passwd, java.lang.String ha1, java.lang.String realm, java.lang.String domain, java.lang.String algorithm)
AuthInfo
object.
The object can be created empty, that is with all arguments set to null.
Username, userid, password, realm and domain can be set later using specific
methods. At the end, username and passwd (or ha1) are required.algorithm
- The algorithm for encrypting password.AuthInfo
object. linphone_auth_info_destroy() must be used to
destroy it when no longer needed. The Core
makes a copy of AuthInfo
passed through Core.addAuthInfo(org.linphone.core.AuthInfo)
.public abstract AuthInfo createAuthInfo(java.lang.String username, java.lang.String userid, java.lang.String passwd, java.lang.String ha1, java.lang.String realm, java.lang.String domain)
AuthInfo
object.
The object can be created empty, that is with all arguments set to null.
Username, userid, password, realm and domain can be set later using specific
methods. At the end, username and passwd (or ha1) are required.domain
- The SIP domain for which this authentication information is
valid, if it has to be restricted for a single SIP domain.AuthInfo
object. linphone_auth_info_destroy() must be used to
destroy it when no longer needed. The Core
makes a copy of AuthInfo
passed through Core.addAuthInfo(org.linphone.core.AuthInfo)
.public abstract Buffer createBufferFromData(byte[] data, int size)
Buffer
.size
- the size of the dataBuffer
public abstract Buffer createBufferFromString(java.lang.String data)
Buffer
.data
- the data to set in the bufferBuffer
public abstract Config createConfig(java.lang.String path)
Config
.path
- the path of the configConfig
public abstract Config createConfigFromString(java.lang.String data)
Config
.data
- the config dataConfig
public abstract Config createConfigWithFactory(java.lang.String path, java.lang.String factoryPath)
Config
.path
- the path of the factoryConfig
public abstract Core createCore(java.lang.String configPath, java.lang.String factoryConfigPath, java.lang.Object systemContext)
Core
object.
The Core
object is the primary handle for doing all phone actions. It
should be unique within your application. The Core
object is not
started automatically, you need to call Core.start()
to that effect. The
returned Core
will be in LinphoneGlobalState Ready. Core ressources can
be released using Core.stop()
which is strongly encouraged on garbage
collected languages.systemContext
- A pointer to a system object required by the core to
operate. Currently it is required to pass an android Context on android, pass
null on other platforms.
See also: linphone_core_new_with_config_3public abstract Core createCoreWithConfig(Config config, java.lang.Object systemContext)
Core
object with a given LinphoneConfig.
The Core
object is the primary handle for doing all phone actions. It
should be unique within your application. The Core
object is not
started automatically, you need to call Core.start()
to that effect. The
returned Core
will be in LinphoneGlobalState Ready. Core ressources can
be released using Core.stop()
which is strongly encouraged on garbage
collected languages.systemContext
- A pointer to a system object required by the core to
operate. Currently it is required to pass an android Context on android, pass
null on other platforms.
See also: linphone_factory_create_core_3public abstract ErrorInfo createErrorInfo()
ErrorInfo
object.public abstract ParticipantDeviceIdentity createParticipantDeviceIdentity(Address address, java.lang.String name)
name
- the name given to the device.public abstract Range createRange()
Range
object.public abstract Transports createTransports()
Transports
object.public abstract TunnelConfig createTunnelConfig()
TunnelConfig
.TunnelConfig
public abstract VideoActivationPolicy createVideoActivationPolicy()
VideoActivationPolicy
object.public abstract VideoDefinition createVideoDefinition(int width, int height)
VideoDefinition
from a given width and height.height
- The height of the created video definitionVideoDefinition
objectpublic abstract VideoDefinition createVideoDefinitionFromName(java.lang.String name)
VideoDefinition
from a given standard definition name.name
- The standard definition name of the video definition to createVideoDefinition
objectpublic abstract void enableLogCollection(LogCollectionState state)
state
- the policy for log collectionpublic abstract java.lang.String getConfigDir(java.lang.Object context)
context
- used to compute path. can be null. JavaPlatformHelper on Android
and char *appGroupId on iOS with shared core.public abstract java.lang.String getDataDir(java.lang.Object context)
context
- used to compute path. can be null. JavaPlatformHelper on Android
and char *appGroupId on iOS with shared core.public abstract java.lang.String getDownloadDir(java.lang.Object context)
context
- used to compute path. can be null. JavaPlatformHelper on Android
and char *appGroupId on iOS with shared core.public abstract boolean isChatroomBackendAvailable(ChatRoomBackend chatroomBackend)
chatroomBackend
- the LinphoneChatRoomBackendpublic abstract void setUserData(java.lang.Object data)
data
- the object to storepublic abstract java.lang.Object getUserData()