Class FavoritesSyncNotificationReceiver


  • public class FavoritesSyncNotificationReceiver
    extends BroadcastReceiver
    This broadcast receiver receives PendingIntents sent by IfeIcoreService notification and notifies application as specified in intent extra. The applications must bundle the Json data and action to be performed while dispatching the pending intent as below.
     
    Intent addIntent = new Intent(this.getApplicationContext(), aero.panasonic.inflight.services.seat.v1.ifeicoreservice.Util.SyncNotificationSender.class); addIntent.putExtra(RemoteSyncIntentExtras.OPERATION_TYPE.getKeyName(), RemoteSyncOperationType.SYNC_FAVORITES.getOperationTypeId()); addIntent.putExtra(RemoteSyncIntentExtras.EVENT_NAME.getKeyName(), RemoteSyncIntentExtras.REQUEST_ADD.name()); PendingIntent pendingAddIntent = PendingIntent.getBroadcast(this.getApplicationContext(), R.id.buttonPlay, addIntent, PendingIntent.FLAG_UPDATE_CURRENT);

    Below listed events are currently supported from Notification.

    • Constructor Detail

      • FavoritesSyncNotificationReceiver

        public FavoritesSyncNotificationReceiver()
    • Method Detail

      • onReceive

        public void onReceive​(Context context,
                              Intent intent)