Пример #1
0
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        private static void SetLights(Android.App.Notification.Builder builder, Kind kind)
        {
            switch (kind)
            {
            case Kind.Error:
                    #pragma warning disable CS0618 // Type or member is obsolete
                builder.SetLights(Color.ParseColor("red"), 2000, 2000);
                    #pragma warning restore CS0618 // Type or member is obsolete
                break;

            case Kind.Warning:
                    #pragma warning disable CS0618 // Type or member is obsolete
                builder.SetLights(Color.ParseColor("yellow"), 2000, 2000);
                    #pragma warning restore CS0618 // Type or member is obsolete
                break;
            }
        }