GameMaker Studio 2 (2.0 - 2.2.x)
Icon

OS Utils

Lazybones games

You must be logged in to obtain assets

Description

This is small extensions that provide small useful features like sharing some text content, rate the game and some others.

Supported platforms: Android, iOS

Functions reference

OSUtils_share(subject, message) — This function will show OS native share dialog from where user can share text content you provided.

OSUtils_rateApp() — On Android this function will open app's page on Google Play. It automatically fetches app's Id and open link market://details?id=your.bundle.id So this link opens in Play Store app. In cases if Play Store isn't installed on a device then it will open link http://play.google.com/store/apps/details?id=your.bundle.id which will be opened in a browser/ On iOS this function will show system SKStoreReviewController and player can rate your game just within the game. You can read Apple's documentation about Requesting App Store Reviews here: https://developer.apple.com/documentation/storekit/skstorereviewcontroller/requesting_app_store_reviews?language=objc If iOS version is lower than 10.3 and so SKStoreReviewController isn't supported then this function will open such link in browser: http://itunes.apple.com/lookup?bundleId=your.bundle.id

OSUtils_getOSVersion() — Will return OS version. On Android it will be something like 5.5, 9. So it's not the API version, it's an Android version. On iOS it will return something like 12.2, 11.0

OSUtils_getDeviceName() — Will return device name. On android name is created from Build.MANUFACTURER + Build.MODEL constants. So it will be something like Asus Nexus 7. On iOS it returns systemInfo.machine constant and will be somethig like iPhone8,1, iPhone9,2 and so on. You can check possible values for example here: https://stackoverflow.com/a/11197770

Release notes

1.0.0 - Initial release

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS2 - Version 1.0.0. Published May 11, 2019

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait