Bold360 and BoldChat Developer Center

BoldChatActivity

com.boldchat.sdk

Class BoldChatActivity

  • java.lang.Object
    • android.content.Context
      • android.content.ContextWrapper
        • android.view.ContextThemeWrapper
          • android.app.Activity
            • com.boldchat.sdk.BoldChatActivity
  • All Implemented Interfaces:
    android.content.ComponentCallbacks, android.content.ComponentCallbacks2, android.view.KeyEvent.Callback, android.view.LayoutInflater.Factory, android.view.LayoutInflater.Factory2, android.view.View.OnCreateContextMenuListener, android.view.Window.Callback, BoldChatSession.BoldChatSessionListener


    public class BoldChatActivity
    extends android.app.Activity
    implements BoldChatSession.BoldChatSessionListener
    • Field Summary

      • Fields inherited from class android.app.Activity

        DEFAULT_KEYS_DIALER, DEFAULT_KEYS_DISABLE, DEFAULT_KEYS_SEARCH_GLOBAL, DEFAULT_KEYS_SEARCH_LOCAL, DEFAULT_KEYS_SHORTCUT, RESULT_CANCELED, RESULT_FIRST_USER, RESULT_OK
      • Fields inherited from class android.content.Context

        ACCESSIBILITY_SERVICE, ACCOUNT_SERVICE, ACTIVITY_SERVICE, ALARM_SERVICE, APP_OPS_SERVICE, AUDIO_SERVICE, BIND_ABOVE_CLIENT, BIND_ADJUST_WITH_ACTIVITY, BIND_ALLOW_OOM_MANAGEMENT, BIND_AUTO_CREATE, BIND_DEBUG_UNBIND, BIND_IMPORTANT, BIND_NOT_FOREGROUND, BIND_WAIVE_PRIORITY, BLUETOOTH_SERVICE, CAPTIONING_SERVICE, CLIPBOARD_SERVICE, CONNECTIVITY_SERVICE, CONSUMER_IR_SERVICE, CONTEXT_IGNORE_SECURITY, CONTEXT_INCLUDE_CODE, CONTEXT_RESTRICTED, DEVICE_POLICY_SERVICE, DISPLAY_SERVICE, DOWNLOAD_SERVICE, DROPBOX_SERVICE, INPUT_METHOD_SERVICE, INPUT_SERVICE, KEYGUARD_SERVICE, LAYOUT_INFLATER_SERVICE, LOCATION_SERVICE, MEDIA_ROUTER_SERVICE, MODE_APPEND, MODE_ENABLE_WRITE_AHEAD_LOGGING, MODE_MULTI_PROCESS, MODE_PRIVATE, MODE_WORLD_READABLE, MODE_WORLD_WRITEABLE, NFC_SERVICE, NOTIFICATION_SERVICE, NSD_SERVICE, POWER_SERVICE, PRINT_SERVICE, SEARCH_SERVICE, SENSOR_SERVICE, STORAGE_SERVICE, TELEPHONY_SERVICE, TEXT_SERVICES_MANAGER_SERVICE, UI_MODE_SERVICE, USB_SERVICE, USER_SERVICE, VIBRATOR_SERVICE, WALLPAPER_SERVICE, WIFI_P2P_SERVICE, WIFI_SERVICE, WINDOW_SERVICE
      • Fields inherited from interface android.content.ComponentCallbacks2

        TRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, TRIM_MEMORY_MODERATE, TRIM_MEMORY_RUNNING_CRITICAL, TRIM_MEMORY_RUNNING_LOW, TRIM_MEMORY_RUNNING_MODERATE, TRIM_MEMORY_UI_HIDDEN
    • Constructor Summary

      Constructors 
      Constructor and Description
      BoldChatActivity() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void chatSessionClosed()
      Everything related to the chat session has been completed, and items related to the chat should be closed.
      void chatSessionCreated()
      The chat session has been created, but not yet started.
      void chatSessionEnded()
      The chat session has ended.
      void chatSessionStarted()
      The chat session has been started.
      void messageArrived(java.lang.String message, java.lang.String sender, java.util.Date sent)
      Indicates a new message from an operator has arrived.
      void onCreate(android.os.Bundle savedInstanceState) 
      boolean onCreateOptionsMenu(android.view.Menu menu) 
      boolean onOptionsItemSelected(android.view.MenuItem item) 
      void operatorTyping()
      Indicates than an operator is currently typing a message.
      • Methods inherited from class android.app.Activity

        addContentView, closeContextMenu, closeOptionsMenu, createPendingResult, dismissDialog, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, dump, findViewById, finish, finishActivity, finishActivityFromChild, finishAffinity, finishFromChild, getActionBar, getApplication, getCallingActivity, getCallingPackage, getChangingConfigurations, getComponentName, getCurrentFocus, getFragmentManager, getIntent, getLastNonConfigurationInstance, getLayoutInflater, getLoaderManager, getLocalClassName, getMenuInflater, getParent, getParentActivityIntent, getPreferences, getRequestedOrientation, getSystemService, getTaskId, getTitle, getTitleColor, getVolumeControlStream, getWindow, getWindowManager, hasWindowFocus, invalidateOptionsMenu, isChangingConfigurations, isChild, isDestroyed, isFinishing, isImmersive, isTaskRoot, managedQuery, moveTaskToBack, navigateUpTo, navigateUpToFromChild, onActionModeFinished, onActionModeStarted, onAttachedToWindow, onAttachFragment, onBackPressed, onConfigurationChanged, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreateContextMenu, onCreateDescription, onCreateNavigateUpTaskStack, onCreatePanelMenu, onCreatePanelView, onCreateThumbnail, onCreateView, onCreateView, onDetachedFromWindow, onGenericMotionEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onLowMemory, onMenuItemSelected, onMenuOpened, onNavigateUp, onNavigateUpFromChild, onOptionsMenuClosed, onPanelClosed, onPrepareNavigateUpTaskStack, onPrepareOptionsMenu, onPreparePanel, onProvideAssistData, onRetainNonConfigurationInstance, onSearchRequested, onTouchEvent, onTrackballEvent, onTrimMemory, onUserInteraction, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, openContextMenu, openOptionsMenu, overridePendingTransition, recreate, registerForContextMenu, removeDialog, reportFullyDrawn, requestWindowFeature, runOnUiThread, setContentView, setContentView, setContentView, setDefaultKeyMode, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setFinishOnTouchOutside, setImmersive, setIntent, setProgress, setProgressBarIndeterminate, setProgressBarIndeterminateVisibility, setProgressBarVisibility, setRequestedOrientation, setResult, setResult, setSecondaryProgress, setTitle, setTitle, setTitleColor, setVisible, setVolumeControlStream, shouldUpRecreateTask, showDialog, showDialog, startActionMode, startActivities, startActivities, startActivity, startActivity, startActivityForResult, startActivityForResult, startActivityFromChild, startActivityFromChild, startActivityFromFragment, startActivityFromFragment, startActivityIfNeeded, startActivityIfNeeded, startIntentSender, startIntentSender, startIntentSenderForResult, startIntentSenderForResult, startIntentSenderFromChild, startIntentSenderFromChild, startManagingCursor, startNextMatchingActivity, startNextMatchingActivity, startSearch, stopManagingCursor, takeKeyEvents, triggerSearch, unregisterForContextMenu
      • Methods inherited from class android.view.ContextThemeWrapper

        applyOverrideConfiguration, getResources, getTheme, setTheme
      • Methods inherited from class android.content.ContextWrapper

        bindService, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingPermission, checkCallingUriPermission, checkPermission, checkUriPermission, checkUriPermission, clearWallpaper, createConfigurationContext, createDisplayContext, createPackageContext, databaseList, deleteDatabase, deleteFile, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, enforceUriPermission, fileList, getApplicationContext, getApplicationInfo, getAssets, getBaseContext, getCacheDir, getClassLoader, getContentResolver, getDatabasePath, getDir, getExternalCacheDir, getExternalCacheDirs, getExternalFilesDir, getExternalFilesDirs, getFilesDir, getFileStreamPath, getMainLooper, getObbDir, getObbDirs, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getSharedPreferences, getWallpaper, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, grantUriPermission, isRestricted, openFileInput, openFileOutput, openOrCreateDatabase, openOrCreateDatabase, peekWallpaper, registerReceiver, registerReceiver, removeStickyBroadcast, removeStickyBroadcastAsUser, revokeUriPermission, sendBroadcast, sendBroadcast, sendBroadcastAsUser, sendBroadcastAsUser, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcastAsUser, sendStickyBroadcast, sendStickyBroadcastAsUser, sendStickyOrderedBroadcast, sendStickyOrderedBroadcastAsUser, setWallpaper, setWallpaper, startInstrumentation, startService, stopService, unbindService, unregisterReceiver
      • Methods inherited from class android.content.Context

        getString, getString, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, registerComponentCallbacks, unregisterComponentCallbacks
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BoldChatActivity

        public BoldChatActivity()
    • Method Detail

      • onCreate

        public void onCreate(android.os.Bundle savedInstanceState)
        Overrides:
        onCreate in class android.app.Activity
      • onCreateOptionsMenu

        public boolean onCreateOptionsMenu(android.view.Menu menu)
        Overrides:
        onCreateOptionsMenu in class android.app.Activity
      • onOptionsItemSelected

        public boolean onOptionsItemSelected(android.view.MenuItem item)
        Overrides:
        onOptionsItemSelected in class android.app.Activity
      • chatSessionCreated

        public void chatSessionCreated()
        Description copied from interface: BoldChatSession.BoldChatSessionListener
        The chat session has been created, but not yet started. At this point it may be showing pre-chat form, or the unavailable email form. If it doesn't need to show a form, then BoldChatSession.BoldChatSessionListener.chatSessionStarted() will be called shortly after this method has been called.
        Specified by:
        chatSessionCreated in interface BoldChatSession.BoldChatSessionListener
      • chatSessionStarted

        public void chatSessionStarted()
        Description copied from interface: BoldChatSession.BoldChatSessionListener
        The chat session has been started. At this point the operator and visitor will be able to send messages back and forth to each other.
        Specified by:
        chatSessionStarted in interface BoldChatSession.BoldChatSessionListener
      • messageArrived

        public void messageArrived(java.lang.String message,
                          java.lang.String sender,
                          java.util.Date sent)
        Description copied from interface: BoldChatSession.BoldChatSessionListener
        Indicates a new message from an operator has arrived.
        Specified by:
        messageArrived in interface BoldChatSession.BoldChatSessionListener
        Parameters:
        message - The text of the message that arrived.
        sender - The name of the operator that sent the message.
        sent - The time that the message was sent.
      • operatorTyping

        public void operatorTyping()
        Description copied from interface: BoldChatSession.BoldChatSessionListener
        Indicates than an operator is currently typing a message.
        Specified by:
        operatorTyping in interface BoldChatSession.BoldChatSessionListener
      • chatSessionEnded

        public void chatSessionEnded()
        Description copied from interface: BoldChatSession.BoldChatSessionListener
        The chat session has ended. At this point the visitor and operator are not longer sending messages, and the post-chat survey may be displayed.
        Specified by:
        chatSessionEnded in interface BoldChatSession.BoldChatSessionListener
      • chatSessionClosed

        public void chatSessionClosed()
        Description copied from interface: BoldChatSession.BoldChatSessionListener
        Everything related to the chat session has been completed, and items related to the chat should be closed.
        Specified by:
        chatSessionClosed in interface BoldChatSession.BoldChatSessionListener