Code example for SparseIntArray

Methods: get

0
				DEFAULT_CODE, intent, Intent.FLAG_ACTIVITY_NEW_TASK);
 
		Notification notification = new NotificationCompat.Builder(mContext)
				.setContentTitle(params.getTitle())
				.setContentText(params.getText())
				.setSmallIcon(ICON_MAP.get(params.getIcon().hashCode()))
				.setContentIntent(pendingIntent).getNotification();
 
		int id = new Random().nextInt();
		mNotificationManager.notify(id, notification);
		callback.succeed(mBridge, new NotificationResult(id + ""));
	} 
 
	@Bridge("system.notification.clear") 
	public void clear(NotificationClearParams params) {
		mNotificationManager.cancel(Integer.parseInt(params.getId()));
	} 
 
	@Override 
	public void onResume() { 
	}