Beispiel #1
0
        public bool AddNotifyChannel(MoblieNotifySBConfig config)
        {
            if (config == null)
            {
                return(false);
            }
            var channel = new AndroidNotificationChannel()
            {
                Id                   = config.ChannelId,
                Name                 = config.ChannelName,
                Importance           = (Importance)config.Importance,
                Description          = config.Description,
                CanBypassDnd         = config.CanBypassDnd,
                CanShowBadge         = config.CanShowBadge,
                EnableLights         = config.EnableLights,
                EnableVibration      = config.EnableVibration,
                LockScreenVisibility = (LockScreenVisibility)config.LockScreenVisibility
            };

            AndroidNotificationCenter.RegisterNotificationChannel(channel);
            this.CurChannelId = config.ChannelId;
            return(true);
        }
Beispiel #2
0
 public bool AddNotifyChannel(MoblieNotifySBConfig config)
 {
     return(true);
 }
Beispiel #3
0
 public bool AddNotifyChannel(MoblieNotifySBConfig config)
 {
     throw new System.NotImplementedException();
 }