ComplianceReport Class Reference
| Inherits from | NSObject |
| Declared in | ComplianceReport.h |
Tasks
-
deviceThe unique identifier of the device
property -
timestampThe last time a report was run
property -
riskScoreThe overall risk score of the report
property -
platformThe platform the report was run on
property -
osVersionThe operating system version of the current device
property -
appVersionThe version of the host application
property -
locationThe location of the device
property -
compliantA boolean defining overall compliance
property -
complianceChecksAn array of ComplianceCheck objects
property -
+ sharedInstanceA singleton for the most recent ComplianceReport
-
– runA method to manually trigger a report
-
– runWithCompletionBlock:A method to manually trigger a report with a callback
Properties
appVersion
The version of the host application
@property (nonatomic, strong) NSString *appVersionDiscussion
This value is pulled from the host applications CFBundle.
Declared In
ComplianceReport.hcomplianceChecks
An array of ComplianceCheck objects
@property (nonatomic, strong) NSMutableArray *complianceChecksDiscussion
The report is comprised of multiple checks which are contained in this array in no particular order.
Declared In
ComplianceReport.hcompliant
A boolean defining overall compliance
@property (nonatomic, strong) NSNumber *compliantDiscussion
An NSNumber containing a boolean that represents whether or not the current report is compliant. If any of the complianceChecks failed the compliance test this value will be false, otherwise, it will be true, verifying overall compliance.
Declared In
ComplianceReport.hdevice
The unique identifier of the device
@property (nonatomic, strong) NSString *deviceDiscussion
This value will relfect the unique identifier the current device is referenced as within our system. This will be the UDID of the device if under management or the vendor identifier if not enrolled or if enrolled without MDM.
Declared In
ComplianceReport.hlocation
The location of the device
@property (nonatomic, strong) NSString *locationDiscussion
Location services pinpoint the location of the device when running every report.
Declared In
ComplianceReport.hosVersion
The operating system version of the current device
@property (nonatomic, strong) NSString *osVersionDiscussion
This value reflects the current operating system by quering the UIDevice singleton [UIDevice currentDevice].
Declared In
ComplianceReport.hplatform
The platform the report was run on
@property (nonatomic, strong) NSString *platformDiscussion
This value will always return “IOS”
Declared In
ComplianceReport.hriskScore
The overall risk score of the report
@property (nonatomic, strong) NSNumber *riskScoreDiscussion
The risk score is a sumation of each score on each ComplianceCheck found in the complianceChecks array.
Declared In
ComplianceReport.hClass Methods
sharedInstance
A singleton for the most recent ComplianceReport
+ (id)sharedInstanceDiscussion
Each automatic report is run on this singleton so it will contain the most recent report at any given time. By calling run on this singleton manually, the same will hold true.
Declared In
ComplianceReport.hInstance Methods
run
A method to manually trigger a report
- (void)runDiscussion
Calling run will run a compliance report and report the results to the server tied to the enrolled user.
Declared In
ComplianceReport.hrunWithCompletionBlock:
A method to manually trigger a report with a callback
- (void)runWithCompletionBlock:(void ( ^ ) ( BOOL succeeded ))blockDiscussion
Calling run will run a compliance report and report the results to the server tied to the enrolled user and then triggers the callback block to allow the developer to implement additional logic based on the results.
Declared In
ComplianceReport.h