This class provides the callbacks for receiving alerts configured on NAO Cloud in the Geonotifications section.
The recommended implementation is as follows:
Code snippet:
@interface GeofencingViewController : UIViewController <NAOGeofencingHandleDelegate, NAOSyncDelegate, NAOSensorsDelegate>
- (void) didFireNAOAlert:(NaoAlert *)alert {
// Desired behavior for the received alert.
}
This class provides the same callback as the NAOGeofencingHandleDelegate, plus 2 additional callbacks to receive alerts for all geofencing events associated to every geofence defined on NAO Cloud in the Geofences section, without the need to define any geonotification.
The recommended implementation is as follows:
Code snippet:
@interface GeofencingViewController : UIViewController <NAOGeofenceHandleDelegate, NAOSyncDelegate, NAOSensorsDelegate>
- (void) didFireNAOAlert:(NaoAlert *)alert { // Desired behavior for the received alert. } - (void)didEnterGeofence:(int)regionId andName:(NSString *)regionName { // Desired behavior when entering the geofence with ID regionId. } - (void)didExitGeofence:(int)regionId andName:(NSString *)regionName { // Desired behavior when exiting the geofence with ID regionId. }