Package com.zopim.android.sdk.widget
Class ChatWidgetService
- java.lang.Object
-
- Service
-
- com.zopim.android.sdk.widget.ChatWidgetService
-
public class ChatWidgetService extends Service
Definition 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_CHAT
when 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_SERVICE
Enabled by default, but can be disabled via
ChatWidgetService.disable()
- See Also:
ChatApiCommands.endChat()
-
-
Constructor Summary
Constructors Constructor and Description ChatWidgetService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static void
disable()
Disables Chat widget UI overlay.IBinder
onBind(Intent intent)
void
onConfigurationChanged(Configuration newConfig)
void
onCreate()
void
onDestroy()
int
onStartCommand(Intent intent, int flags, int startId)
static void
startService(Context context)
static boolean
stopService(Context context)
-
-
-
Method Detail
-
startService
public static void startService(Context context)
-
stopService
public static boolean stopService(Context context)
-
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.
-
-