ONGClient Class Reference
Main entry point for the Onegini SDK. This class owns SDK’s configuration and such clients as
ONGDeviceClient. In order to use any feature of the OneginiSDK
[ONGClientBuilder build] needs to be called first.
Access to the initialized and configured instance of the
ONGClient. Before calling this method You have to initialize
SDK by calling
instance of the configured
Warning: If the SDK is not initialized via
[ONGClientBuilder build] this method throws an exception.
Is a mandatory first call on ONGClient which is returned by
- (void)start:(void ( ^ ) ( BOOL success , NSError *_Nullable error ))completion
is called after the method processing has finished. If the SDK is successfully started, other further work is allowed. Errors passed to the block will be within the ONGGenericErrorDomain
Reset to the state the SDK had just after completing the start method. Errors passed to the block will be within the ONGGenericErrorDomain.
- (void)reset:(void ( ^ ) ( BOOL success , NSError *_Nullable error ))completion
is called after the method processing has finished.
The ConfigModel used to configure OneginiSDK.
@property (nonatomic, readonly) ONGConfigModel *configModel
@property (nonatomic, readonly) ONGUserClient *userClient
ONGDeviceClient used for device and network-related features. Once SDK has been configured,
can be access either by calling this property or by
@property (nonatomic, readonly) ONGDeviceClient *deviceClient