Package com.zopim.android.sdk.widget
Class ChatWidgetService
- java.lang.Object
-
- Service
-
- com.zopim.android.sdk.widget.ChatWidgetService
-
public class ChatWidgetService extends ServiceDefinition of a chat widget UI service.This widget will be presented when chat is exited but not ended. It allows a visitor to get back to the ongoing chat by tapping the widget.
It broadcasts
ChatActions.ACTION_RESUME_CHATwhen widget is tapped on. Receive that broadcast to get notified when ongoing chat UI needs to be presented. To dismiss the widget use eitherandroid.app.Service#stopService(android.content.Intent)or start service with a stopChatActions.ACTION_STOP_WIDGET_SERVICEEnabled by default, but can be disabled via
ChatWidgetService.disable()- See Also:
ZopimChatApi.endChat()
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description classChatWidgetService.LocalBinderClass used for the client Binder.
-
Constructor Summary
Constructors Constructor and Description ChatWidgetService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static voiddisable()Disables Chat widget UI overlay.IBinderonBind(Intent intent)voidonConfigurationChanged(Configuration newConfig)voidonCreate()voidonDestroy()intonStartCommand(Intent intent, int flags, int startId)
-
-
-
Method Detail
-
onBind
public IBinder onBind(Intent intent)
-
onCreate
public void onCreate()
-
onStartCommand
public int onStartCommand(Intent intent, int flags, int startId)
-
onConfigurationChanged
public void onConfigurationChanged(Configuration newConfig)
-
onDestroy
public void onDestroy()
-
disable
public static void disable()
Disables Chat widget UI overlay.Minimizing chat will not present the widget. However, chat session will remain active until chat is ended or a timeout has occurred.
-
-