public SelectAllTextEffect()
            : base(EffectIds.SelectAllText)
        {
#if __IOS__
            if (DateTime.Now.Ticks < 0)
            {
                _ = new Xamarin.CommunityToolkit.iOS.Effects.SelectAllTextEffect();
            }
#elif __ANDROID__
            if (DateTime.Now.Ticks < 0)
            {
                _ = new Xamarin.CommunityToolkit.Android.Effects.SelectAllTextEffect();
            }
#endif
        }
Esempio n. 2
0
        public SelectAllTextEffect()
            : base(EffectIds.SelectAllText)
        {
            #region Required work-around to prevent linker from removing the platform-specific implementation
#if __IOS__
            if (DateTime.Now.Ticks < 0)
            {
                _ = new Xamarin.CommunityToolkit.iOS.Effects.SelectAllTextEffect();
            }
#elif __ANDROID__
            if (DateTime.Now.Ticks < 0)
            {
                _ = new Xamarin.CommunityToolkit.Android.Effects.SelectAllTextEffect();
            }
#endif
            #endregion
        }