• BlackBerry Dynamics
  • Runtime library for iOS applications
  • 10.2.0.83
BAFBlackberryAnalytics.h
Go to the documentation of this file.
1 /*
2  * (c) 2020 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 
162 @interface BAFBlackberryAnalytics : NSObject
163 
164 
178 + (void)trackFeatureEvent:(BAFAnalyticsEvent)event
179  withFeatureName:(NSString *_Nonnull)featureName
180  completion:(_Nullable BAFAnalyticsResponseCompletion)completion;
181 
196 + (void)trackApplicationEvent:(BAFAnalyticsEvent)event
197  withValue:(NSString *_Nonnull)eventValue
198  forKey:(NSString *_Nonnull)eventKey
199  completion:(_Nullable BAFAnalyticsResponseCompletion)completion;
200 
201 
217 + (void)trackSecurityEvent:(BAFSecurityEventType)eventType
218  withEventValue:(NSString *_Nullable)eventVal;
219 
319 + (void)trackAppUsagePattern:(BISAppUsageEventType)eventType
320  version:(NSUInteger)version
321  data:(NSDictionary<NSString *, NSObject *> *_Nonnull)appData
322  completion:(_Nullable BAFAnalyticsResponseCompletion)completion;
323 
330 + (BOOL)isSISenabled;
331 
340 + (void)displaySISsettings;
341 
342 // Deprecated public methods
343 
350 + (void)sendGDAppEvent:(id _Null_unspecified )anEvent __attribute__((deprecated("Remove sendGDAppEvent: no longer required from this version")));
351 
352 
353 @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:162
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.