Aila_Init
Initialize Aila and begin communications with the kiosk, but does not start scanning.
Signature
- Objective-C
- Swift
void Aila_Init(void);
func Aila_Init()
Description
Initializes the Aila SDK and begins communications with the kiosk hardware if connected. This function should be called once at app launch before using any other SDK functionality.
Aila_Init() may block temporarily while initializing camera and audio, and a permission dialog may be presented as a side effect.
It is recommended to set the configuration via Aila_SetConfiguration() before scanning. Otherwise, the default configuration will be used.
Usage
- Objective-C
- Swift
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Initialize the SDK
Aila_Init();
return YES;
}
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
// Initialize the SDK
Aila_Init()
return true
}
See Also
- Aila_SetConfiguration - Configure SDK settings
- Aila_Start - Start scanning
- Requirements - Platform and permission requirements