-
Notifications
You must be signed in to change notification settings - Fork 19
Class Notification
PavelTychinin edited this page Sep 17, 2021
·
4 revisions
Notification class is used for working with the notifications and storing its data.
Referenced from: NotificationListener.
public int getId()Function returns the notification's identifier.
public String getTitle()Function returns the notification's title.
public String getContent()Function returns the notification's content description.
public String getImageId()Function returns the notification's image id, which could be used for getting Image using ResourceManager.
public class MyApp extends Application {
public static LocationManager mLocationManager = null;
public static NotificationManager mNotificationManager = null;
...
@Override
public void onCreate() {
super.onCreate();
NavigineSdk.setUserHash("0000-0000-0000-0000");
NavigineSdk.setServer("https://api.navigine.com");
mNavigineSdk = NavigineSdk.getInstance();
mLocationManager = mNavigineSdk.getLocationManager();
mLocationManager.setLocationId(12345);
mNotificationManager = mNavigineSdk.getNotificationManager(mLocationManager);
mNotificationManager.addNotificationListener(new NotificationListener() {
@Override
public void onNotificationLoaded(Notification notification) {
Log.d("Notification", "onNotificationReceived: " + notification.getTitle());
}
@Override
public void onNotificationFailed(Error error) {
Log.d("Notification", "onNotificationFailed: " + error.getMessage());
}
});
...Tutorials
Classes
- NavigineSdk
- LocationListManager
- LocationManager
- NavigationManager
- RouteManager
- ZoneManager
- NotificationManager
- MeasurementManager
- LocationEditManager
- ResourceManager
- Location
- Sublocation
- Category
- Venue
- Zone
- Beacon
- Eddystone
- Wifi
- LocationView
- LocationViewController
- CircleMapObject
- PolylineMapObject
- IconMapObject
- TouchInput
- ScaleResponder
- PanResponder
- LongPressResponder
- DoubleTapResponder
- TapResponder
- LocationListListener
- LocationListener
- PositionListener
- RouteListener
- ZoneListener
- NotificationListener
- LocationEditListener
- MeasurementListener
- ResourceListener
- ResourceUploadListener
- Notification
- Position
- SignalMeasurement
- SensorMeasurement
- Image
- RoutePath
- RouteEvent
- LocationPoint
- LocationInfo
- BitmapRegionDecoder