Skip to Content
defold-typescript libraries
megalanthusdefold-gamepush

megalanthus/defold-gamepush/gamepush.core.app

GamePush application details: title, description, image and URL, review requests and shortcuts.

  • GitHub: megalanthus/defold-gamepush — pinned to v1.4.1
    1. Pick a release from megalanthus/defold-gamepush releases and add its Source code (zip) URL (or a packaged .zip asset, if the library ships one) to game.project under [project] dependencies, then Fetch Libraries in the Defold editor.
    2. Run bunx @defold-typescript/cli resolve to materialize its types.
    3. Import it under a namespace alias of your choice:
      import * as core_app from "gamepush.core.app"

Functions

title(): string

The game's title.

Returns

  • string

description(): string

The game's description.

Returns

  • string

image(): string

The game's image.

Returns

  • string

url(): string

The game's URL.

Returns

  • string

request_review(callback?: (result: unknown) => void)

Asks the player to review the game.

Parameters

  • callback?: (result: unknown) => void — Receives the result.

can_request_review(): boolean

Whether the platform lets the game ask for a review.

Returns

  • boolean

is_already_reviewed(): boolean

Whether the player has already reviewed the game.

Returns

  • boolean

add_shortcut(callback?: (result: unknown) => void)

Asks the player to add a shortcut to the game or add it to their favorites.

Parameters

  • callback?: (result: unknown) => void — Receives the result.

can_add_shortcut(): boolean

Whether the platform lets the game add a shortcut or a favorite.

Returns

  • boolean

On this page