Class coreapidevicelistener

Listener used for device events.More…

#import <Core.h>

Inheritance diagram for <CoreAPIDeviceListener >:

Instance Methods

(void) - onDeviceError:withDescription:
(void) - onDeviceConnected:withDeviceInfo:
(void) - onDeviceDisconnected:
(void) - onSelectApplication:
(void) - onSelectBTDevice:
(void) - onDeviceConnectionError
(void) - onDeviceInfoReturned:

Detailed Description

Listener used for device events.

Method Documentation

onDeviceConnected:withDeviceInfo:()

  • - (void CoreAPIDeviceListener) onDeviceConnected:
  • (DeviceEnum)
  • type

  • withDeviceInfo:
  • (NSDictionary *)
  • deviceInfo

Fires when device gets connected.

Parameters

  • type
  • represents connected device

onDeviceConnectionError()

  • - (void CoreAPIDeviceListener) onDeviceConnectionError

This method is called when there is a problem connecting to a device.

onDeviceDisconnected:()

  • - (void CoreAPIDeviceListener) onDeviceDisconnected:
  • (DeviceEnum)
  • type

Fires when device gets disconnected.

Parameters

  • type
  • represents disconnected device

onDeviceError:withDescription:()

  • - (void CoreAPIDeviceListener) onDeviceError:
  • (CoreDeviceError)
  • deviceError

  • withDescription:
  • (NSString *)
  • message

This method is triggered when there is an error coming from the device.

Parameters

  • deviceError
  • contains typedef enum of an error.

onDeviceInfoReturned:()

  • - (void CoreAPIDeviceListener) onDeviceInfoReturned:
  • (NSDictionary *)
  • deviceInfo

Information about the device.

Parameters

  • deviceInfo
  • returned

onSelectApplication:()

  • - (void CoreAPIDeviceListener) onSelectApplication:
  • (NSArray *)
  • applications

This method is called when the application selection is required.

Parameters

  • applications
  • represents the array of applications to choose from

onSelectBTDevice:()

  • - (void CoreAPIDeviceListener) onSelectBTDevice:
  • (NSArray *)
  • devices

This method is called when the bluetooth device selection is required.

Parameters

  • devices
  • represents the array of devices to choose from