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 inAnalytics.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 theAnalytics.recordApplicationDidBecomeActive()andAnalytics.recordApplicationWillResignActive()methods in the app’sExtensionDelegatemethods 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
BMSURLSessionfrom theBMSCoreframework.Declaration
Swift
case network
View on GitHub
DeviceEvent Enumeration Reference