YSKInitializer class

#import <YSKInitializer.h>

Class that initializes the library.

Initialization is an internal process for initializing internal SpeechKit mechanisms. Initialization must be performed once before using other library components.

Initialization may require executing lengthy read operations from permanent memory or network access, and generally takes a significant amount of time. This is why a special mechanism has been introduced for performing initialization when it is convenient for the user.

In the current implementation, the initializer sends a request to the server and gets a set of parameters and configurations in response (such as the audio format or parameters of the active voice detection algorithm), which are then used by other library components.

The initializer is designed to carry out a single startup and may not be reused.

Note.

Before creating YSKInitializer objects, you must call configureWithAPIKey: or configureWithAPIKey:andLocationProvider:.

Instance methods

-dealloc

Releases resources used by the initializer.

-init

Initializes a single-use initializer object.

-start

Starts the initialization process.

Class methods

+isInitializationCompleted

Checks whether initialization has already been performed.

Properties

delegate

The delegate will receive notifications when the initialization starts and finishes, and when initialization errors occur.

Method descriptions

-dealloc

- (void) dealloc

Releases resources used by the initializer.

-init

- (instancetype) init

Initializes a single-use initializer object.

To start the initialization process, call the start method.

Returns:

The created initializer.

+isInitializationCompleted

+ (BOOL) isInitializationCompleted

Checks whether initialization has already been performed.

-start

- (void) start

Starts the initialization process.

Property descriptions

delegate

(weak, readwrite) id< YSKInitializerDelegate > delegate

Delegate for notification about the progress of initialization.

The delegate will receive notifications when the initialization starts and finishes, and when initialization errors occur.