Esempio n. 1
0
        public void Init(Activity activity, IPlatformOptions androidOptions)
        {
            IntentFilter filter = new IntentFilter();

            filter.AddAction(DismissedClickIntent);
            filter.AddAction(OnClickIntent);

            _receiver = new NotificationReceiver();

            activity.RegisterReceiver(_receiver, filter);

            _androidOptions = androidOptions;
        }
        public void Init(IPlatformOptions androidOptions)
        {
            PackageName = Application.Context.PackageName;

            IntentFilter filter = new IntentFilter();

            filter.AddAction(DismissedClickIntent);
            filter.AddAction(OnClickIntent);

            _receiver = new NotificationReceiver();

            Application.Context.RegisterReceiver(_receiver, filter);

            _androidOptions = androidOptions;
        }