CRApplication.h

This file defines the CRApplication class and the CRApplicationDelegate class.

CRApplication


initWithDelegate:background

Initialize a instance of the CRApplication class.

Arguments

See also


start

Starts the Ring iOS SDK service including bluetooth connection, gesture recognition, etc.

Arguments

See also
Configure the Application


setRingMode:

Change the mode of the Ring device

Arguments

See also
About modes


installGestures:error:

Install gestures into the SDK. The gestures will be stored to internal database.

Arguments

See also
Gestures and The Gesture Mode


installedGestureIdentifiers

Returns an array of IDs of installed gestures.

Arguments

See also
Gestures and The Gesture Mode


setActiveGestureIdentifiers:gestureIdentifiers

Mark gestures recognizable. Use the ID String to assign a gesture.

Arguments

See also

activeGestureIdentifiers

Returns an array of IDs of assigned gestures.

Arguments

See also
Gestures and The Gesture Mode


CRApplicationDelegate


deviceDidInitialize

Swift
public func deviceDidInitialize()

Objective-C

- (void)deviceDidInitialize
 

Called when the Ring device has been ready.

Arguments

See also


deviceDidDisconnect

Swift
public func deviceDidDisconnect

Objective-C

- (void)deviceDidDisconnect
 

Called when the connection between the Ring device and the iOS device lost.

Arguments

See also


didReceiveEvent

Swift
public func didReceiveEvent(event: CRRingEvent)

Objective-C

- (void)didReceiveEvent:(CRRingEvent)event
 

Called when receive an event from the touch sensor.

Arguments

See also

didReceivePoint:

Swift
public func didReceivePoint(point: CGPoint)

Objective-C

- (void)didReceivePoint:(CGPoint)point
 

Called when receive a movement information in X-Y coordinate format.

Arguments

See also


didReceiveQuaternion:

Swift
public func didReceiveQuaternion(quaternion: CRQuaternion)

Objective-C

- (void)didReceiveQuaternion:(CRQuaternion)quaternion
 

Called when receive a movement information in quaternion format.

Arguments

See also


didReceiveGesture:

Swift
public func didReceiveGesture(identifier: String!)

Objective-C

- (void)didReceiveGesture:(NSString *)identifier
 

Called when receive a gesture.

Arguments
See also
Gestures and The Gesture Mode