YMKAddressBookManager

Важно

This feature is available in the NaviKit SDK version.

class YMKAddressBookManager : NSObject

Summary

Instance methods

func addListener(with addressBookListener: any YMKAddressBookListener)
The class does not retain the object in the 'addressBookListener' parameter

func removeListener(with addressBookListener: any YMKAddressBookListener)
The class does not retain the object in the 'addressBookListener' parameter

func requestRefresh()
Request to attempt to get address book from server

Properties

var addressBookYMKAddressBook { get }

var isValid: Bool { get }
Tells if this object is valid or no

Instance methods

addListener(with:)

func addListener(with addressBookListener: any YMKAddressBookListener)

The class does not retain the object in the 'addressBookListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.


removeListener(with:)

func removeListener(with addressBookListener: any YMKAddressBookListener)

The class does not retain the object in the 'addressBookListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.


requestRefresh()

func requestRefresh()

Request to attempt to get address book from server. Refresh attempts may be throttled and ignored. Immediately after downloading from disk, the first attempt to update will be made automatically.


Properties

addressBook

var addressBook: YMKAddressBook { get }


isValid

var isValid: Bool { get }

Tells if this object is valid or no. Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.


Предыдущая