GMS WebView Android Extension v3.0

(13/03/2018)

GMSWebView Android Extension

This is the first and ONLY original webview extension for Android!

This cool extension allows you to embed a working real Webview object directly onto the game/app screen on your Android apps made using Game Maker Studio!

You may also call it a Web Browser object, Browser control or TinyWeb.

Alot of time has gone into making this extension and it has been tested on a few Android devices the price reflects this.  You will find many uses of GMSWebView extension, several useful usages are shown in the demo app, for example show a YouTube video or embed a HTML5 game or widget!

You will find many features included:

WebView_Create()
WebView_Destroy()
WebView_Goto()
WebView_GetTitle()
WebView_Move()
WebView_Resize()
WebView_Reload()
WebView_Navigate(“back”)
WebView_Navigate(“forward”)

WebView_GetURL()
WebView_Hide()
WebView_IsVisible()
WebView_IsLoaded()
WebView_IsLoaded()
WebView_GetWidth()
WebView_GetHeight()

New Functions v1.6:

WebView_Navigate(“back/forward/home”) 
WebView_SetHome(url);
WebView_GetHome() returns a string containing the URL of the Home URL set

New Functions v1.7:

WebView_IsCreated() Returns 1 is webview created or 0 if it isnt, use before for example moving webview.
WebView_X() returns a double value with X position of webview
WebView_Y() returns a double value with Y position of webview

New Functions v3.0

WebView_SetInitialScale(scale) Set as 0 for default scales or a value greater than 0 as a percentage
WebView_Zoom(amount) enter a value from 0.01 to 100 to zoom in / out by that amount
WebView_ZoomIn() zoom the webview in
WebView_ZoomOut() zoom the webview out

 

yoyogames_buy

First initialize the extension using WebView_Init() in your game or room start event.  Only need to call it once.  Then create a new object and place it in your room.  You can then call WebView_Create() to embed a new webview object onto your app.  You have to enter the exact position on the screen in pixels of where to position it.  The size is dependent on your app’s room scaling on the phone.  If the room is scaled up double then you will have to double up the size of the webview to, have a little play and you will know what size to use.  Im not expert on screen resolution so if you have issues with sizing and positioning please ask on the Game Maker forums.

Once the webview is embedded it will remain active and open even when you change rooms.  So you will have to use the WebView_Hide() or WebView_Destroy() when you dont want the Webview to be visible on screen.  Once created you can also change the URL, set new HTML, navigate back / forward (these are not working on all devices at the moment), get the page title.  Once you have created or changed the URL use WebView_IsLoaded() function in an alarm or timer event to execute the next code after page is loaded.

New Functions v1.7:

WebView_Navigate(“back/forward/home”) 
WebView_GetHome() returns a string containing the URL of the Home URL set

Official Support Thread on YoyoGames:

Click Here

 

Download GMSWebView Game Maker Studio Extension Demo Android App

 

Show web based intro videos in your games, show helpful hints videos, include widgets in your apps like web based length converters or currency converters.  Play music from online SoundCloud website making less file size and more!

If you need other functions please ask, but no guarantee given that we will add it.

Screenshots:

                   GMSWebView Android Extension GMSWebView Android ExtensionGMSWebView Android Extension

Save

Save

Save

Save

 

 

GMSWebView Demo App Video:

Save

Save

Save

Save