One Logo Pool Ball
ManagedSettings · IOS API REFERENCE

GameCenterSettings

struct · iOS 15.0+ · SDK 27.1

struct GameCenterSettings

Constraints on the user's Game Center settings. Use `GameCenterSettings` to prevent the user from changing Game Center's settings for adding friends and joining multiplayer games.

Members (6)

get · iOS 15.0+

denyAddingFriends

TypeScript
static get denyAddingFriends(): SettingMetadata<boolean>
Swift declaration
static let denyAddingFriends: SettingMetadata<Bool>

The metadata for the setting that prevents the user from adding friends in Game Center. Use `denyAddingFriends` to access the metadata for ``denyAddingFriends-swift.property``. The default value is `false`.

get · iOS 15.0+

denyAddingFriends

TypeScript
get denyAddingFriends10201(): (boolean) | null
Swift declaration
var denyAddingFriends: Bool? { get set }

A Boolean value that indicates whether to prevent the user from adding Game Center friends. If your app doesn't configure this setting, this value is `nil`.

set · iOS 15.0+

denyAddingFriends

TypeScript
set denyAddingFriends10201(value: (boolean) | null)
Swift declaration
var denyAddingFriends: Bool? { get set }

A Boolean value that indicates whether to prevent the user from adding Game Center friends. If your app doesn't configure this setting, this value is `nil`.

get · iOS 15.0+

denyMultiplayerGaming

TypeScript
static get denyMultiplayerGaming(): SettingMetadata<boolean>
Swift declaration
static let denyMultiplayerGaming: SettingMetadata<Bool>

The metadata associated with the setting that prevents users from joining multiplayer games. Use `denyMultiplayerGaming` to access the metadata for ``GameCenterSettings/denyMultiplayerGaming-swift.property``. The default value is `false`.

get · iOS 15.0+

denyMultiplayerGaming

TypeScript
get denyMultiplayerGaming29045(): (boolean) | null
Swift declaration
var denyMultiplayerGaming: Bool? { get set }

A Boolean value that indicates whether your app prevents the user joining multiplayer games. If your app doesn't set this value, it is `nil`.

set · iOS 15.0+

denyMultiplayerGaming

TypeScript
set denyMultiplayerGaming29045(value: (boolean) | null)
Swift declaration
var denyMultiplayerGaming: Bool? { get set }

A Boolean value that indicates whether your app prevents the user joining multiplayer games. If your app doesn't set this value, it is `nil`.

Skipped declarations

No declarations were skipped in this snapshot.

All ManagedSettings types →