0.1.0 • Published 12 months ago
Last release12 months ago
@astrocreep/capacitor-gamecenter
GameCenter for Capacitor.js
iOS only
Install
npm install @astrocreep/capacitor-gamecenter
npx cap sync
API
authenticate()
authenticate() => Promise<void>
toggleAccessPoint(...)
toggleAccessPoint(options: ToggleAccessPointOptions) => Promise<void>
Param | Type |
---|
options | ToggleAccessPointOptions |
addScore(...)
addScore(options: AddScoreOptions) => Promise<AddScoreResult>
Param | Type |
---|
options | AddScoreOptions |
Returns: Promise<AddScoreResult>
progressAchievement(...)
progressAchievement(options: ProgressAchievementOptions) => Promise<void>
Param | Type |
---|
options | ProgressAchievementOptions |
Interfaces
ToggleAccessPointOptions
AddScoreResult
AddScoreOptions
Prop | Type |
---|
identifier | string |
score | number |
ProgressAchievementOptions
Prop | Type |
---|
identifier | string |
progress | number |