public final class DeskPhoneServiceLibrary
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static DeskPhoneService |
getDeskPhoneService() |
static java.lang.String |
getDeskPhoneServicesVersion()
Get the version of DeskPhoneServices
|
static java.lang.String |
getDetailedBuildID()
Get the details of when and where this version of the library was built.
|
static DeskPhoneService |
initialize(android.content.Context context,
DeskPhoneEventListener listener,
com.avaya.clientservices.client.Client client,
FeatureControl featureControl)
Initializes the DeskPhone Services library and its dependencies.
|
static void |
setLogListener(com.avaya.clientservices.client.Client.LogListener listener)
Set an object to receive logs generated by the deskphone services
library.
|
@Nullable public static DeskPhoneService initialize(android.content.Context context, DeskPhoneEventListener listener, com.avaya.clientservices.client.Client client, @Nullable FeatureControl featureControl) throws InvalidPlatformException, java.lang.IllegalStateException
Application should first create Client instance and then initialize DeskPhone services.
Applications to initialize DeskPhone services from Android application's onCreate()
context - Android application contextlistener - Application's implementation of DeskPhoneEventListenerclient - Client SDK's ClientfeatureControl - Override the aura feature's auto processing at application layer.
Disabling the feature parameter in featureControl turns off auto processing
for respective feature in DeskPhone services.DeskPhoneServiceImpl instance.InvalidPlatformException - If running on non desk phone platformjava.lang.NullPointerException - If essential parameters are missingjava.lang.IllegalStateException - If called after DeskPhone Services were already initializedFeatureControlpublic static void setLogListener(@Nullable
com.avaya.clientservices.client.Client.LogListener listener)
This is the same interface as used by Client Services in
Client.setLogListener(LogListener), so you can use the same
object for handling logs from both packages.
listener - The new log listener. If set to null, deskphone
services logs will resume going only to Android's logcat.@NonNull public static java.lang.String getDeskPhoneServicesVersion()
@NonNull public static java.lang.String getDetailedBuildID()
@Nullable public static DeskPhoneService getDeskPhoneService()