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:
- ChatApiCommands.endChat()
 
- 
- 
Constructor SummaryConstructors Constructor and Description ChatWidgetService()
 - 
Method SummaryAll 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)static voidstartService(Context context)static booleanstopService(Context context)
 
- 
- 
- 
Method Detail- 
startServicepublic static void startService(Context context) 
 - 
stopServicepublic static boolean stopService(Context context) 
 - 
onBindpublic IBinder onBind(Intent intent) 
 - 
onCreatepublic void onCreate() 
 - 
onStartCommandpublic int onStartCommand(Intent intent, int flags, int startId)
 - 
onConfigurationChangedpublic void onConfigurationChanged(Configuration newConfig) 
 - 
onDestroypublic void onDestroy() 
 - 
disablepublic 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. 
 
- 
 
-