ORKAudioLevelNavigationRule Class Reference

Inherits from ORKStepNavigationRule : NSObject
Declared in ORKAudioLevelNavigationRule.h
ORKAudioLevelNavigationRule.m

Other Methods

– initWithAudioLevelStepIdentifier:destinationStepIdentifier:recordingSettings:

Returns an initialized direct-step navigation rule using the specified destination step identifier.

- (instancetype)initWithAudioLevelStepIdentifier:(NSString *)audioLevelStepIdentifier destinationStepIdentifier:(NSString *)destinationStepIdentifier recordingSettings:(NSDictionary *)recordingSettings

Parameters

audioLevelStepIdentifier

The identifier of the step with the audio file to check.

destinationStepIdentifier

The identifier of the destination step if audio test passes.

recordingSettings

Use key AVNumberOfChannelsKey to sepcify the number of recording channels.

Return Value

A audio level step navigation rule.

Declared In

ORKAudioLevelNavigationRule.h

– initWithCoder:

Returns a new direct-step navigation rule initialized from data in a given unarchiver.

- (instancetype)initWithCoder:(NSCoder *)aDecoder

Parameters

aDecoder

The coder from which to initialize the step navigation rule.

Return Value

A new direct-step navigation rule.

Declared In

ORKAudioLevelNavigationRule.h

Other Methods

– identifierForDestinationStepWithTaskResult:

Returns the target step identifier.

- (NSString *)identifierForDestinationStepWithTaskResult:(ORKTaskResult *)taskResult

Parameters

taskResult

The up-to-date task result, used for calculating the destination step.

Return Value

The identifier of the destination step.

Discussion

Subclasses must implement this method to calculate the next step based on the passed task result. The ORKNullStepIdentifier constant can be returned to indicate that the ongoing task should end after the step navigation rule is triggered.

Declared In

ORKStepNavigationRule.h