• BlackBerry Dynamics
  • Runtime library for iOS applications
  • 12.0.1.79
BAFBlackberryAnalytics.h
Go to the documentation of this file.
1 /*
2  * Copyright 2023 BlackBerry Limited. All rights reserved.
3  *
4  */
5 
6 #import <Foundation/Foundation.h>
7 
13 typedef void (^BAFAnalyticsResponseCompletion)(NSError *__nullable error) API_AVAILABLE(ios(9.0));
14 
19 typedef NS_ENUM(NSUInteger, BAFAnalyticsEvent) {
24 
29 
34 };
35 
39 typedef NS_ENUM(NSUInteger, BAFSecurityEventType) {
44 
49 
54 
59 
64 };
65 
69 typedef NS_ENUM(NSUInteger, BISAppUsageEventType) {
74 
79 };
80 
89 extern NSString * _Nonnull const BISThreatLevelChangeNotification;
90 
91 // Keys for Notification user info dictionary
96 extern NSString * _Nonnull const BISThreatLevelChangeKey;
97 
98 
99 
106 @interface BAFBlackberryAnalytics : NSObject
107 
108 
122 + (void)trackFeatureEvent:(BAFAnalyticsEvent)event
123  withFeatureName:(NSString *_Nonnull)featureName
124  completion:(_Nullable BAFAnalyticsResponseCompletion)completion;
125 
140 + (void)trackApplicationEvent:(BAFAnalyticsEvent)event
141  withValue:(NSString *_Nonnull)eventValue
142  forKey:(NSString *_Nonnull)eventKey
143  completion:(_Nullable BAFAnalyticsResponseCompletion)completion;
144 
145 
161 + (void)trackSecurityEvent:(BAFSecurityEventType)eventType
162  withEventValue:(NSString *_Nullable)eventVal;
163 
263 + (void)trackAppUsagePattern:(BISAppUsageEventType)eventType
264  version:(NSUInteger)version
265  data:(NSDictionary<NSString *, NSObject *> *_Nonnull)appData
266  completion:(_Nullable BAFAnalyticsResponseCompletion)completion;
267 
274 + (BOOL)isSISenabled;
275 
284 + (void)displaySISsettings;
285 
286 // Deprecated public methods
287 
294 + (void)sendGDAppEvent:(id _Null_unspecified )anEvent __attribute__((deprecated("Remove sendGDAppEvent: no longer required from this version")));
295 
296 
297 @end
BISAppUsageEventType
BISAppUsageEventType
App Usage Event Type.
Definition: BAFBlackberryAnalytics.h:69
BISThreatLevelChangeKey
NSString *const _Nonnull BISThreatLevelChangeKey
UserInfo dictionary from BISThreatLevelChangeNotification contains threat level change key.
BAFBlackberryAnalytics
Class for BlackBerry Analytics and BlackBerry Persona.
Definition: BAFBlackberryAnalytics.h:106
BAFAdoptionEvent
@ BAFAdoptionEvent
Record events or actions which occur in your application.
Definition: BAFBlackberryAnalytics.h:33
BAFSecurityFeatureInactive
@ BAFSecurityFeatureInactive
Feature Inactive Event.
Definition: BAFBlackberryAnalytics.h:58
BAFSecurityAppActive
@ BAFSecurityAppActive
App Active Event.
Definition: BAFBlackberryAnalytics.h:43
BAFSecurityEventType
BAFSecurityEventType
Security Event Type.
Definition: BAFBlackberryAnalytics.h:39
BAFAnalyticsEvent
BAFAnalyticsEvent
Analytics Event Type.
Definition: BAFBlackberryAnalytics.h:19
BISContinuousAuth
@ BISContinuousAuth
Continuous Auth type event.
Definition: BAFBlackberryAnalytics.h:73
BAFSecurityFeatureActive
@ BAFSecurityFeatureActive
Feature Active Event.
Definition: BAFBlackberryAnalytics.h:53
BAFSecurityAppInactive
@ BAFSecurityAppInactive
App Inactive Event.
Definition: BAFBlackberryAnalytics.h:48
BISAppIntelligence
@ BISAppIntelligence
App Intelligence type event.
Definition: BAFBlackberryAnalytics.h:78
BAFFeatureInactive
@ BAFFeatureInactive
Record the end of an event which has a specific start point.
Definition: BAFBlackberryAnalytics.h:28
BAFAnalyticsResponseCompletion
void(^ BAFAnalyticsResponseCompletion)(NSError *__nullable error) API_AVAILABLE(ios(9.0))
Invoked when the track event operation completes (optional).
Definition: BAFBlackberryAnalytics.h:13
+[BAFBlackberryAnalytics displaySISsettings]
void displaySISsettings()
Show a settings screen to enable the user to manage BlackBerrry Persona.
BAFSecurityAdoptionEvent
@ BAFSecurityAdoptionEvent
Adoption Event.
Definition: BAFBlackberryAnalytics.h:63
BAFFeatureActive
@ BAFFeatureActive
Record the start of an event which has a specific end point.
Definition: BAFBlackberryAnalytics.h:23
+[BAFBlackberryAnalytics isSISenabled]
BOOL isSISenabled()
Determine if BlackBerry Persona is enabled for the current user by their administrator.
BISThreatLevelChangeNotification
NSString *const _Nonnull BISThreatLevelChangeNotification
NSNotification name for changes to threat level during risk assessment.