Instance Property

underage

A Boolean value that declares whether the local player is underage.

Declaration

iOS, tvOS, watchOS
@property(readonly, getter=isUnderage, nonatomic) BOOL underage;
macOS
@property(readonly, getter=isUnderage, atomic) BOOL underage;

Discussion

Some Game Center features are disabled if the local player is underage. Your game can also test this property if it wants to disable some of its own features based on the player’s age.