@astrocreep/capacitor-gamecenter
v0.1.0
Published
GameCenter for Capacitor.js
Readme
@astrocreep/capacitor-gamecenter
GameCenter for Capacitor.js iOS only
Install
npm install @astrocreep/capacitor-gamecenter
npx cap syncAPI
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
| Prop | Type |
| ---------- | -------------------- |
| show | boolean |
AddScoreResult
| Prop | Type |
| ------------- | -------------------- |
| success | boolean |
AddScoreOptions
| Prop | Type |
| ---------------- | ------------------- |
| identifier | string |
| score | number |
ProgressAchievementOptions
| Prop | Type |
| ---------------- | ------------------- |
| identifier | string |
| progress | number |
