Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

GameKit.ShowChallengeComposeDialog

Shows challenge compose dialog.

Component Version macOS Windows Linux Server iOS SDK
GameKit 8.5 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "GameKit.ShowChallengeComposeDialog"; scoreRef or AchievementRef; Message; playerIdentifiers { ; Filename; ScriptName } )   More

Parameters

Parameter Description Example Flags
scoreRef or AchievementRef The score or achievement identiifer.
Message The message text.
playerIdentifiers The list of player identifiers.
Filename The database file name where the script is located. "test.fmp12" Optional
ScriptName The script name. "MyScript" Optional

Result

Returns OK or error.

Description

Shows challenge compose dialog.
Provides a challenge compose view controller with pre-selected player identifiers and a pre-formatted, player-editable message.
Once dialog finishes, the given script is triggered and passed either didIssueChallenge or cancel as parameter.

This function is free to use.

Created 5th November 2018, last changed 8th November 2018


GameKit.SetPlayerDidChangeScriptTrigger - GetSystemUIMode

💬 Ask a question or report a problem