示例#1
0
        public MainPageViewModel(INotifoMobilePush notifoService, IDeviceService deviceService)
        {
            this.notifoService = notifoService;
            this.deviceService = deviceService;

            RefreshCommand = new DelegateCommand(RefreshExecute);
        }
示例#2
0
        public void ConfigureService(INotifoMobilePush notifo)
        {
            notifo
            .SetBaseUrl(Constants.ApiUrl)
            .SetApiKey(Constants.UserApiKey)
            .UseFirebasePluginEventsProvider()
            .Register();

            notifo.OnNotificationOpened += Current_OnNotificationOpened;
        }
示例#3
0
 /// <summary>
 /// Use the firebase plugin as the push events provider.
 /// </summary>
 /// <param name="notifoMobilePush">
 /// The <see cref="INotifoMobilePush"/> instance.
 /// </param>
 /// <returns>The current instance.</returns>
 public static INotifoMobilePush UseFirebasePluginEventsProvider(this INotifoMobilePush notifoMobilePush) =>
 notifoMobilePush.SetPushEventsProvider(CurrentPluginEventsProvider.Value);