YMKAddressBookListener
Важно
This feature is available in the NaviKit SDK version.
|
protocol YMKAddressBookListener : NSObjectProtocol |
Summary
Instance methods
|
func onLoaded(withHasAddressBook hasAddressBook: Bool) |
|
func onDropped() |
|
func onRefreshSuccess(withChanged changed: Bool) |
|
func onRefreshErrorWithError(_ error: any Error) |
Instance methods
onLoaded(withHasAddressBook:)
|
func onLoaded(withHasAddressBook hasAddressBook: Bool) |
Called when local address book copy id loaded from disk. Called immediatly for listeners added after loading.
onDropped()
|
func onDropped() |
Called when address book was dropped, usually after account changed
onRefreshSuccess(withChanged:)
|
func onRefreshSuccess(withChanged changed: Bool) |
Called after refresh successfull attempt
onRefreshErrorWithError(_:)
|
func onRefreshErrorWithError(_ error: any Error) |
Called if error occured on refresh attempt. This may throw subclasses of NetworkError during network loading, as well as other exceptions.