SCiO Device callback
September 17, 2015
The SCiO device class enables the application to register a few callback functions, to receive notifications for various events:
- setDeviceButtonBlock()
Pressing on the SCiO device’s button triggers the setDeviceButtonBlock event. The application can register an event handler for a button press and initiate actions upon it, for example, to scan a sample.
- (void)viewDidLoad {
[super viewDidLoad];
_models = [NSArray array];
[[CPScioDevice sharedInstance] setDeviceButtonBlock:^{
// Enter code for handling the button press event here
}];
}
Leave a Reply
You must be logged in to post a comment.