c2c-push/app/src/main/java/com/polar/nextcloudservices/Services/NotificationServiceBinder.java
2025-11-22 13:50:23 +01:00

23 lines
No EOL
763 B
Java

package com.polar.nextcloudservices.Services;
public class NotificationServiceBinder extends android.os.Binder {
private final INotificationService mNotificationService;
public NotificationServiceBinder(INotificationService service){
super();
mNotificationService = service;
}
// Returns current status string of a service
public String getServiceStatus() {
return mNotificationService.getStatus();
}
// Runs re-check of preferences, can be called from activities
public void onPreferencesChanged() {
mNotificationService.onPreferencesChanged();
}
// Update API class when accounts state change
public void onAccountChanged() {
mNotificationService.onAccountChanged();
}
}