public interface ProximityKitSyncNotifier
public class MyApplication extends Application implements ProximityKitSyncNotifier {
@Override
public void didFailSync( @NonNull Exception e) {
Log.e("MyApp", "Proximity Kit network sync failed", e);
// Check if the app needs to prompt the user for network access or enabling wifi.
}
@Override
public void didSync() {
Log.d("MyApp", "Proximity Kit sync completed");
// Good time to check any regions for modifications if they are used by the app.
}
}
Modifier and Type | Method and Description |
---|---|
void |
didFailSync(Exception cause)
Called after a failed sync of the registered kit with the cloud.
|
void |
didSync()
Called after a successful sync of the registered the kit with the cloud.
|
void didFailSync(Exception cause)
cause
.cause
- The cause of the failed sync.void didSync()