Created
August 21, 2018 09:54
-
-
Save jfversluis/19a7631f9b8d383fea17e9862e92872f to your computer and use it in GitHub Desktop.
Implemented code in the Android WebViewRenderer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void UpdateEnableZoomControls() | |
{ | |
// BuiltInZoomControls supported as of API level 3 | |
if (Control != null && ((int)Build.VERSION.SdkInt >= 3)) | |
{ | |
var value = Element.OnThisPlatform().EnableZoomControls(); | |
Control.Settings.SetSupportZoom(value); | |
Control.Settings.BuiltInZoomControls = value; | |
} | |
} | |
void UpdateDisplayZoomControls() | |
{ | |
// DisplayZoomControls supported as of API level 11 | |
if (Control != null && ((int)Build.VERSION.SdkInt >= 11)) | |
{ | |
var value = Element.OnThisPlatform().DisplayZoomControls(); | |
Control.Settings.DisplayZoomControls = value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment