subscribe

Subscribes to safety location data with configuration options that specify the rectangular areas and the safety location types in the areas of interest. To receive the data, a client must call the provide() method after subscribing. It is the client's responsibility to unsubscribe from safety location data for all the sets of safety location options previously registered.

Parameters

options

Safety location options that specify the rectangular areas and the safety location types of interest. If the options do not specify any safety location types, then the subscription will cover all the supported types.

listener

Listener to be notified either when data was updated in the rectangular areas the client has subscribed to, or in case of safety locations failure.