ZXing.Net.Mobile.Forms.ZXingDefaultOverlay.OnFlashCommandChanged C# (CSharp) Method

OnFlashCommandChanged() private static method

private static OnFlashCommandChanged ( BindableObject bindable, object oldvalue, object newValue ) : void
bindable BindableObject
oldvalue object
newValue object
return void
        private static void OnFlashCommandChanged( BindableObject bindable, object oldvalue, object newValue )
        {
            var overlay = bindable as ZXingDefaultOverlay;
            if( overlay?.flash == null ) return;
            overlay.flash.Command = newValue as Command;
        }
    }