/// <summary>
        ///   Used for registration with dependency service
        /// </summary>
        public static void Init()
        {
            CachedImage.IsRendererInitialized = true;
#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
            ScaleHelper.InitAsync();
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
        }
        /// <summary>
        ///   Used for registration with dependency service
        /// </summary>
        public static new void Init()
        {
            CachedImage.IsRendererInitialized = true;

            // needed because of this STUPID linker issue: https://bugzilla.xamarin.com/show_bug.cgi?id=31076
#pragma warning disable 0219
            var ignore1 = typeof(CachedImageRenderer);
            var ignore2 = typeof(CachedImage);
#pragma warning restore 0219
#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
            ScaleHelper.InitAsync();
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
        }
Пример #3
0
        public async override Task Init()
        {
            await ScaleHelper.InitAsync();

            await base.Init();
        }
Пример #4
0
 public static void Init()
 {
     CachedImage.IsRendererInitialized = true;
     ScaleHelper.InitAsync();
 }
Пример #5
0
        public async override Task Init()
        {
            await ScaleHelper.InitAsync().ConfigureAwait(false);

            await base.Init().ConfigureAwait(false);
        }
Пример #6
0
        public override async Task Init()
        {
            await ScaleHelper.InitAsync().ConfigureAwait(continueOnCapturedContext: false);

            await base.Init().ConfigureAwait(continueOnCapturedContext: false);
        }