Aila_GetSDKLicensingInfo
Returns current licensing info of SDK as JSON string.
Signature
- Objective-C
- Swift
NSString* Aila_GetSDKLicensingInfo(void);
func Aila_GetSDKLicensingInfo() -> String
Returns
A JSON-encoded snapshot of the SDK's current licensing state, or nil on error.
Description
Returns a JSON‐encoded snapshot of the SDK's current licensing state. All dates in the JSON are formatted as ISO-8601 UTC strings.
The currentConfiguration field will read "SoftScan" for any SDK that has not been able to connect to Aila hardware for 24 hours.
Example Return Value
{
"expirationOverride": "2025-08-16T04:00:00Z",
"currentConfiguration": "Kiosk",
"versionNumber": "20250721.2",
"profileID": "com_aila_demo_profile",
"SoftScan": {
"parsing_dl": {"enabled": true, "expires": "2025-01-20T17:21:44Z"},
"standard_symbology": {"enabled": true, "expires": "2025-01-20T17:21:44Z"},
"advanced_symbology": {"enabled": true, "expires": "2025-01-20T17:21:44Z"},
"parsing_gs1": {"enabled": true, "expires": "2025-01-20T17:21:44Z"},
"mrz_scanning": {"enabled": true, "expires": "2025-01-20T17:21:44Z"}
},
"Kiosk": {
"parsing_dl": {"enabled": true, "expires": "2025-01-20T17:21:44Z"},
"standard_symbology": {"enabled": true, "expires": "2025-01-20T17:21:44Z"},
"advanced_symbology": {"enabled": true, "expires": "2025-01-20T17:21:44Z"},
"parsing_gs1": {"enabled": true, "expires": "2025-01-20T17:21:44Z"},
"mrz_scanning": {"enabled": true, "expires": "2025-01-20T17:21:44Z"}
}
}
Usage
- Objective-C
- Swift
NSString *licensingInfo = Aila_GetSDKLicensingInfo();
if (licensingInfo) {
NSData *data = [licensingInfo dataUsingEncoding:NSUTF8StringEncoding];
NSDictionary *json = [NSJSONSerialization JSONObjectWithData:data
options:0
error:nil];
NSLog(@"Licensing Info: %@", json);
}
if let licensingInfo = Aila_GetSDKLicensingInfo(),
let data = licensingInfo.data(using: .utf8),
let json = try? JSONSerialization.jsonObject(with: data) as? [String: Any] {
print("Licensing Info: \(json)")
}
See Also
- Aila_ReadLicense - Initialize license file
- Aila_SetLicenseProfile - Set cloud licensing profile
- AilaSetLicenseNotification - License change notification