YMKAddressBookListener

Важно

This feature is available in the NaviKit SDK version.

@protocol YMKAddressBookListener <NSObject>

Summary

Instance methods

- (void)onLoadedWithHasAddressBook:(BOOL)hasAddressBook;
Called when local address book copy id loaded from disk

- (void)onDropped;
Called when address book was dropped, usually after account changed

- (void)onRefreshSuccessWithChanged:(BOOL)changed;
Called after refresh successfull attempt

- (void)onRefreshErrorWithError:(nonnull NSError *)error;
Called if error occured on refresh attempt

Instance methods

onLoadedWithHasAddressBook:

- (void)onLoadedWithHasAddressBook:(BOOL)hasAddressBook;

Called when local address book copy id loaded from disk. Called immediatly for listeners added after loading.


onDropped

- (void)onDropped;

Called when address book was dropped, usually after account changed


onRefreshSuccessWithChanged:

- (void)onRefreshSuccessWithChanged:(BOOL)changed;

Called after refresh successfull attempt


onRefreshErrorWithError:

- (void)onRefreshErrorWithError:(nonnull NSError *)error;

Called if error occured on refresh attempt. This may throw subclasses of NetworkError during network loading, as well as other exceptions.


Предыдущая
Следующая