DeviceEvent

public enum DeviceEvent

The set of device events that the Analytics class will listen for. Whenever an event of the specified type occurs, analytics data for that event will be recorded.

Note

Register DeviceEvents in Analytics.initialize(appName:apiKey:hasUserContext:deviceEvents:).
  • Records the duration of the app’s lifecycle from when it enters the foreground to when it goes to the background.

    Note

    Only available for iOS apps. For watchOS apps, call the Analytics.recordApplicationDidBecomeActive() and Analytics.recordApplicationWillResignActive() methods in the app’s ExtensionDelegate methods of the same name.

    Declaration

    Swift

    case lifecycle
  • Records metadata for network requests sent by the Bluemix Mobile Services SDKs (BMSCore, BMSAnalytics, BMSPush, BMSSecurity, etc.). To have metadata recorded for your own custom network requests and sent to the Mobile Analytics service, create your requests with BMSURLSession from the BMSCore framework.

    Declaration

    Swift

    case network