Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public bool AddNotifyChannel(MoblieNotifySBConfig config)
 {
     return(true);
 }
Ejemplo n.º 3
0
 public bool AddNotifyChannel(MoblieNotifySBConfig config)
 {
     throw new System.NotImplementedException();
 }