@byvik/capacitor-play-games 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/docs.json ADDED
@@ -0,0 +1,763 @@
1
+ {
2
+ "api": {
3
+ "name": "PlayGamesPlugin",
4
+ "slug": "playgamesplugin",
5
+ "docs": "",
6
+ "tags": [],
7
+ "methods": [
8
+ {
9
+ "name": "isAuthenticated",
10
+ "signature": "() => Promise<AuthResult>",
11
+ "parameters": [],
12
+ "returns": "Promise<AuthResult>",
13
+ "tags": [
14
+ {
15
+ "name": "since",
16
+ "text": "0.1.0"
17
+ }
18
+ ],
19
+ "docs": "Whether a player is signed in. Shows no UI and never rejects.\n\nThe SDK tries a silent sign-in when the app starts, so this is the call\nto make before drawing anything that depends on the session.",
20
+ "complexTypes": [
21
+ "AuthResult"
22
+ ],
23
+ "slug": "isauthenticated"
24
+ },
25
+ {
26
+ "name": "signIn",
27
+ "signature": "() => Promise<AuthResult>",
28
+ "parameters": [],
29
+ "returns": "Promise<AuthResult>",
30
+ "tags": [
31
+ {
32
+ "name": "since",
33
+ "text": "0.1.0"
34
+ }
35
+ ],
36
+ "docs": "Ask the player to sign in. This is the only call that shows Google's\nsign-in UI, so make it from a button the player pressed. Never rejects:\na cancelled or failed sign-in resolves with `isAuthenticated: false`.",
37
+ "complexTypes": [
38
+ "AuthResult"
39
+ ],
40
+ "slug": "signin"
41
+ },
42
+ {
43
+ "name": "getCurrentPlayer",
44
+ "signature": "() => Promise<Player>",
45
+ "parameters": [],
46
+ "returns": "Promise<Player>",
47
+ "tags": [
48
+ {
49
+ "name": "since",
50
+ "text": "0.1.0"
51
+ }
52
+ ],
53
+ "docs": "The signed-in player. Rejects when nobody is signed in.",
54
+ "complexTypes": [
55
+ "Player"
56
+ ],
57
+ "slug": "getcurrentplayer"
58
+ },
59
+ {
60
+ "name": "openPlayGamesApp",
61
+ "signature": "() => Promise<void>",
62
+ "parameters": [],
63
+ "returns": "Promise<void>",
64
+ "tags": [
65
+ {
66
+ "name": "since",
67
+ "text": "0.1.0"
68
+ }
69
+ ],
70
+ "docs": "Open the Play Games app, or its store listing when it is not installed.\n\nUseful when `signIn()` cannot succeed because the device has no Google\naccount or the player has no Play Games profile: both are created there.",
71
+ "complexTypes": [],
72
+ "slug": "openplaygamesapp"
73
+ },
74
+ {
75
+ "name": "submitScore",
76
+ "signature": "(options: SubmitScoreOptions) => Promise<void>",
77
+ "parameters": [
78
+ {
79
+ "name": "options",
80
+ "docs": "",
81
+ "type": "SubmitScoreOptions"
82
+ }
83
+ ],
84
+ "returns": "Promise<void>",
85
+ "tags": [
86
+ {
87
+ "name": "since",
88
+ "text": "0.1.0"
89
+ }
90
+ ],
91
+ "docs": "Submit a score to a leaderboard.",
92
+ "complexTypes": [
93
+ "SubmitScoreOptions"
94
+ ],
95
+ "slug": "submitscore"
96
+ },
97
+ {
98
+ "name": "getLeaderboardStanding",
99
+ "signature": "(options: LeaderboardStandingOptions) => Promise<LeaderboardStanding>",
100
+ "parameters": [
101
+ {
102
+ "name": "options",
103
+ "docs": "",
104
+ "type": "LeaderboardStandingOptions"
105
+ }
106
+ ],
107
+ "returns": "Promise<LeaderboardStanding>",
108
+ "tags": [
109
+ {
110
+ "name": "since",
111
+ "text": "0.1.0"
112
+ }
113
+ ],
114
+ "docs": "The player's rank and score, and the number of scores in the\nleaderboard, read together for one time span and collection.",
115
+ "complexTypes": [
116
+ "LeaderboardStanding",
117
+ "LeaderboardStandingOptions"
118
+ ],
119
+ "slug": "getleaderboardstanding"
120
+ },
121
+ {
122
+ "name": "showLeaderboard",
123
+ "signature": "(options: LeaderboardOptions) => Promise<void>",
124
+ "parameters": [
125
+ {
126
+ "name": "options",
127
+ "docs": "",
128
+ "type": "LeaderboardOptions"
129
+ }
130
+ ],
131
+ "returns": "Promise<void>",
132
+ "tags": [
133
+ {
134
+ "name": "since",
135
+ "text": "0.1.0"
136
+ }
137
+ ],
138
+ "docs": "Open Google's UI for one leaderboard. Resolves when the UI opens.",
139
+ "complexTypes": [
140
+ "LeaderboardOptions"
141
+ ],
142
+ "slug": "showleaderboard"
143
+ },
144
+ {
145
+ "name": "showAllLeaderboards",
146
+ "signature": "() => Promise<void>",
147
+ "parameters": [],
148
+ "returns": "Promise<void>",
149
+ "tags": [
150
+ {
151
+ "name": "since",
152
+ "text": "0.1.0"
153
+ }
154
+ ],
155
+ "docs": "Open Google's UI listing every leaderboard of the game.",
156
+ "complexTypes": [],
157
+ "slug": "showallleaderboards"
158
+ },
159
+ {
160
+ "name": "unlockAchievement",
161
+ "signature": "(options: AchievementOptions) => Promise<void>",
162
+ "parameters": [
163
+ {
164
+ "name": "options",
165
+ "docs": "",
166
+ "type": "AchievementOptions"
167
+ }
168
+ ],
169
+ "returns": "Promise<void>",
170
+ "tags": [
171
+ {
172
+ "name": "since",
173
+ "text": "0.1.0"
174
+ }
175
+ ],
176
+ "docs": "Unlock an achievement. Queued by the SDK when offline.",
177
+ "complexTypes": [
178
+ "AchievementOptions"
179
+ ],
180
+ "slug": "unlockachievement"
181
+ },
182
+ {
183
+ "name": "revealAchievement",
184
+ "signature": "(options: AchievementOptions) => Promise<void>",
185
+ "parameters": [
186
+ {
187
+ "name": "options",
188
+ "docs": "",
189
+ "type": "AchievementOptions"
190
+ }
191
+ ],
192
+ "returns": "Promise<void>",
193
+ "tags": [
194
+ {
195
+ "name": "since",
196
+ "text": "0.1.0"
197
+ }
198
+ ],
199
+ "docs": "Reveal a hidden achievement. Queued by the SDK when offline.",
200
+ "complexTypes": [
201
+ "AchievementOptions"
202
+ ],
203
+ "slug": "revealachievement"
204
+ },
205
+ {
206
+ "name": "incrementAchievement",
207
+ "signature": "(options: AchievementStepsOptions) => Promise<void>",
208
+ "parameters": [
209
+ {
210
+ "name": "options",
211
+ "docs": "",
212
+ "type": "AchievementStepsOptions"
213
+ }
214
+ ],
215
+ "returns": "Promise<void>",
216
+ "tags": [
217
+ {
218
+ "name": "since",
219
+ "text": "0.1.0"
220
+ }
221
+ ],
222
+ "docs": "Add steps to an incremental achievement. Queued by the SDK when offline.",
223
+ "complexTypes": [
224
+ "AchievementStepsOptions"
225
+ ],
226
+ "slug": "incrementachievement"
227
+ },
228
+ {
229
+ "name": "setAchievementSteps",
230
+ "signature": "(options: AchievementStepsOptions) => Promise<void>",
231
+ "parameters": [
232
+ {
233
+ "name": "options",
234
+ "docs": "",
235
+ "type": "AchievementStepsOptions"
236
+ }
237
+ ],
238
+ "returns": "Promise<void>",
239
+ "tags": [
240
+ {
241
+ "name": "since",
242
+ "text": "0.1.0"
243
+ }
244
+ ],
245
+ "docs": "Set the absolute progress of an incremental achievement. Play ignores a\nvalue lower than the one it already has, which makes this the safe choice\nwhen your own save holds the real counter.",
246
+ "complexTypes": [
247
+ "AchievementStepsOptions"
248
+ ],
249
+ "slug": "setachievementsteps"
250
+ },
251
+ {
252
+ "name": "showAchievements",
253
+ "signature": "() => Promise<void>",
254
+ "parameters": [],
255
+ "returns": "Promise<void>",
256
+ "tags": [
257
+ {
258
+ "name": "since",
259
+ "text": "0.1.0"
260
+ }
261
+ ],
262
+ "docs": "Open Google's achievements UI. Resolves when the UI opens.",
263
+ "complexTypes": [],
264
+ "slug": "showachievements"
265
+ },
266
+ {
267
+ "name": "saveGame",
268
+ "signature": "(options: SaveGameOptions) => Promise<void>",
269
+ "parameters": [
270
+ {
271
+ "name": "options",
272
+ "docs": "",
273
+ "type": "SaveGameOptions"
274
+ }
275
+ ],
276
+ "returns": "Promise<void>",
277
+ "tags": [
278
+ {
279
+ "name": "since",
280
+ "text": "0.1.0"
281
+ }
282
+ ],
283
+ "docs": "Write a saved game to the player's Google account, creating it if needed.\nConflicts between devices are resolved by keeping the most recently\nmodified copy.",
284
+ "complexTypes": [
285
+ "SaveGameOptions"
286
+ ],
287
+ "slug": "savegame"
288
+ },
289
+ {
290
+ "name": "loadGame",
291
+ "signature": "(options: LoadGameOptions) => Promise<LoadGameResult>",
292
+ "parameters": [
293
+ {
294
+ "name": "options",
295
+ "docs": "",
296
+ "type": "LoadGameOptions"
297
+ }
298
+ ],
299
+ "returns": "Promise<LoadGameResult>",
300
+ "tags": [
301
+ {
302
+ "name": "since",
303
+ "text": "0.1.0"
304
+ }
305
+ ],
306
+ "docs": "Read a saved game. Resolves with `data: null` when it does not exist and\nrejects when it could not be read.",
307
+ "complexTypes": [
308
+ "LoadGameResult",
309
+ "LoadGameOptions"
310
+ ],
311
+ "slug": "loadgame"
312
+ }
313
+ ],
314
+ "properties": []
315
+ },
316
+ "interfaces": [
317
+ {
318
+ "name": "AuthResult",
319
+ "slug": "authresult",
320
+ "docs": "",
321
+ "tags": [],
322
+ "methods": [],
323
+ "properties": [
324
+ {
325
+ "name": "isAuthenticated",
326
+ "tags": [
327
+ {
328
+ "text": "0.1.0",
329
+ "name": "since"
330
+ }
331
+ ],
332
+ "docs": "Whether a player is signed in to Play Games Services.",
333
+ "complexTypes": [],
334
+ "type": "boolean"
335
+ },
336
+ {
337
+ "name": "errorCode",
338
+ "tags": [
339
+ {
340
+ "text": "0.1.0",
341
+ "name": "since"
342
+ }
343
+ ],
344
+ "docs": "Google API status code. Only present when the SDK reported an error.\n\n`10` (DEVELOPER_ERROR) means the app is misconfigured: the SHA-1 of this\nbuild or its package name is missing from the OAuth credentials in the\nPlay Console. `16` and `12501` mean the player cancelled.",
345
+ "complexTypes": [],
346
+ "type": "number | undefined"
347
+ },
348
+ {
349
+ "name": "errorMessage",
350
+ "tags": [
351
+ {
352
+ "text": "0.1.0",
353
+ "name": "since"
354
+ }
355
+ ],
356
+ "docs": "Error message from the SDK. Only present when the SDK reported an error.",
357
+ "complexTypes": [],
358
+ "type": "string | undefined"
359
+ }
360
+ ]
361
+ },
362
+ {
363
+ "name": "Player",
364
+ "slug": "player",
365
+ "docs": "",
366
+ "tags": [],
367
+ "methods": [],
368
+ "properties": [
369
+ {
370
+ "name": "playerId",
371
+ "tags": [
372
+ {
373
+ "text": "0.1.0",
374
+ "name": "since"
375
+ }
376
+ ],
377
+ "docs": "",
378
+ "complexTypes": [],
379
+ "type": "string"
380
+ },
381
+ {
382
+ "name": "displayName",
383
+ "tags": [
384
+ {
385
+ "text": "0.1.0",
386
+ "name": "since"
387
+ }
388
+ ],
389
+ "docs": "The name the player shows in Play Games.",
390
+ "complexTypes": [],
391
+ "type": "string"
392
+ },
393
+ {
394
+ "name": "title",
395
+ "tags": [
396
+ {
397
+ "text": "0.1.0",
398
+ "name": "since"
399
+ }
400
+ ],
401
+ "docs": "The player's Play Games title, if they have one.",
402
+ "complexTypes": [],
403
+ "type": "string | undefined"
404
+ }
405
+ ]
406
+ },
407
+ {
408
+ "name": "SubmitScoreOptions",
409
+ "slug": "submitscoreoptions",
410
+ "docs": "",
411
+ "tags": [],
412
+ "methods": [],
413
+ "properties": [
414
+ {
415
+ "name": "leaderboardId",
416
+ "tags": [
417
+ {
418
+ "text": "0.1.0",
419
+ "name": "since"
420
+ }
421
+ ],
422
+ "docs": "",
423
+ "complexTypes": [],
424
+ "type": "string"
425
+ },
426
+ {
427
+ "name": "score",
428
+ "tags": [
429
+ {
430
+ "text": "0.1.0",
431
+ "name": "since"
432
+ }
433
+ ],
434
+ "docs": "Raw score, an integer. For time leaderboards it is in milliseconds and for\ncurrency leaderboards in 1/1,000,000ths of the main unit.",
435
+ "complexTypes": [],
436
+ "type": "number"
437
+ },
438
+ {
439
+ "name": "immediate",
440
+ "tags": [
441
+ {
442
+ "text": "false",
443
+ "name": "default"
444
+ },
445
+ {
446
+ "text": "0.1.0",
447
+ "name": "since"
448
+ }
449
+ ],
450
+ "docs": "Wait for the server to confirm the score.\n\nWith `false` the SDK queues the score, even offline, and the call resolves\nstraight away. With `true` the call resolves once the server has the score\nand rejects when it cannot be reached; use it when you read the standing\nright after submitting.",
451
+ "complexTypes": [],
452
+ "type": "boolean | undefined"
453
+ }
454
+ ]
455
+ },
456
+ {
457
+ "name": "LeaderboardStanding",
458
+ "slug": "leaderboardstanding",
459
+ "docs": "",
460
+ "tags": [],
461
+ "methods": [],
462
+ "properties": [
463
+ {
464
+ "name": "rank",
465
+ "tags": [
466
+ {
467
+ "text": "0.1.0",
468
+ "name": "since"
469
+ }
470
+ ],
471
+ "docs": "The player's rank, or `null` when unknown (for example, no score in this\ntime span).",
472
+ "complexTypes": [],
473
+ "type": "number | null"
474
+ },
475
+ {
476
+ "name": "score",
477
+ "tags": [
478
+ {
479
+ "text": "0.1.0",
480
+ "name": "since"
481
+ }
482
+ ],
483
+ "docs": "The player's raw score, or `null` when unknown.",
484
+ "complexTypes": [],
485
+ "type": "number | null"
486
+ },
487
+ {
488
+ "name": "numScores",
489
+ "tags": [
490
+ {
491
+ "text": "0.1.0",
492
+ "name": "since"
493
+ }
494
+ ],
495
+ "docs": "How many scores the leaderboard has in this time span and collection, or\n`null` when unknown.",
496
+ "complexTypes": [],
497
+ "type": "number | null"
498
+ }
499
+ ]
500
+ },
501
+ {
502
+ "name": "LeaderboardStandingOptions",
503
+ "slug": "leaderboardstandingoptions",
504
+ "docs": "",
505
+ "tags": [],
506
+ "methods": [],
507
+ "properties": [
508
+ {
509
+ "name": "forceReload",
510
+ "tags": [
511
+ {
512
+ "text": "false",
513
+ "name": "default"
514
+ },
515
+ {
516
+ "text": "0.1.0",
517
+ "name": "since"
518
+ }
519
+ ],
520
+ "docs": "Skip the local cache and ask the server. The cached number of scores can\nbe stale, but Google rate-limits forced reloads: keep it for moments when\nfresh data matters.",
521
+ "complexTypes": [],
522
+ "type": "boolean | undefined"
523
+ }
524
+ ]
525
+ },
526
+ {
527
+ "name": "LeaderboardOptions",
528
+ "slug": "leaderboardoptions",
529
+ "docs": "",
530
+ "tags": [],
531
+ "methods": [],
532
+ "properties": [
533
+ {
534
+ "name": "leaderboardId",
535
+ "tags": [
536
+ {
537
+ "text": "0.1.0",
538
+ "name": "since"
539
+ }
540
+ ],
541
+ "docs": "",
542
+ "complexTypes": [],
543
+ "type": "string"
544
+ },
545
+ {
546
+ "name": "timeSpan",
547
+ "tags": [
548
+ {
549
+ "text": "'allTime'",
550
+ "name": "default"
551
+ },
552
+ {
553
+ "text": "0.1.0",
554
+ "name": "since"
555
+ }
556
+ ],
557
+ "docs": "",
558
+ "complexTypes": [
559
+ "LeaderboardTimeSpan"
560
+ ],
561
+ "type": "LeaderboardTimeSpan"
562
+ },
563
+ {
564
+ "name": "collection",
565
+ "tags": [
566
+ {
567
+ "text": "'public'",
568
+ "name": "default"
569
+ },
570
+ {
571
+ "text": "0.1.0",
572
+ "name": "since"
573
+ }
574
+ ],
575
+ "docs": "",
576
+ "complexTypes": [
577
+ "LeaderboardCollection"
578
+ ],
579
+ "type": "LeaderboardCollection"
580
+ }
581
+ ]
582
+ },
583
+ {
584
+ "name": "AchievementOptions",
585
+ "slug": "achievementoptions",
586
+ "docs": "",
587
+ "tags": [],
588
+ "methods": [],
589
+ "properties": [
590
+ {
591
+ "name": "achievementId",
592
+ "tags": [
593
+ {
594
+ "text": "0.1.0",
595
+ "name": "since"
596
+ }
597
+ ],
598
+ "docs": "",
599
+ "complexTypes": [],
600
+ "type": "string"
601
+ }
602
+ ]
603
+ },
604
+ {
605
+ "name": "AchievementStepsOptions",
606
+ "slug": "achievementstepsoptions",
607
+ "docs": "",
608
+ "tags": [],
609
+ "methods": [],
610
+ "properties": [
611
+ {
612
+ "name": "achievementId",
613
+ "tags": [
614
+ {
615
+ "text": "0.1.0",
616
+ "name": "since"
617
+ }
618
+ ],
619
+ "docs": "",
620
+ "complexTypes": [],
621
+ "type": "string"
622
+ },
623
+ {
624
+ "name": "steps",
625
+ "tags": [
626
+ {
627
+ "text": "0.1.0",
628
+ "name": "since"
629
+ }
630
+ ],
631
+ "docs": "",
632
+ "complexTypes": [],
633
+ "type": "number"
634
+ }
635
+ ]
636
+ },
637
+ {
638
+ "name": "SaveGameOptions",
639
+ "slug": "savegameoptions",
640
+ "docs": "",
641
+ "tags": [],
642
+ "methods": [],
643
+ "properties": [
644
+ {
645
+ "name": "name",
646
+ "tags": [
647
+ {
648
+ "text": "0.1.0",
649
+ "name": "since"
650
+ }
651
+ ],
652
+ "docs": "Unique name of the saved game: 1 to 100 characters from `a-z`, `A-Z`,\n`0-9`, `-`, `.`, `_` and `~`.",
653
+ "complexTypes": [],
654
+ "type": "string"
655
+ },
656
+ {
657
+ "name": "data",
658
+ "tags": [
659
+ {
660
+ "text": "0.1.0",
661
+ "name": "since"
662
+ }
663
+ ],
664
+ "docs": "The contents, stored as UTF-8. Play allows up to 3 MB per saved game.",
665
+ "complexTypes": [],
666
+ "type": "string"
667
+ },
668
+ {
669
+ "name": "description",
670
+ "tags": [
671
+ {
672
+ "text": "0.1.0",
673
+ "name": "since"
674
+ }
675
+ ],
676
+ "docs": "Description shown in the Play Games saved games UI.",
677
+ "complexTypes": [],
678
+ "type": "string | undefined"
679
+ }
680
+ ]
681
+ },
682
+ {
683
+ "name": "LoadGameResult",
684
+ "slug": "loadgameresult",
685
+ "docs": "",
686
+ "tags": [],
687
+ "methods": [],
688
+ "properties": [
689
+ {
690
+ "name": "data",
691
+ "tags": [
692
+ {
693
+ "text": "0.1.0",
694
+ "name": "since"
695
+ }
696
+ ],
697
+ "docs": "The saved contents, or `null` when no saved game with that name exists.",
698
+ "complexTypes": [],
699
+ "type": "string | null"
700
+ }
701
+ ]
702
+ },
703
+ {
704
+ "name": "LoadGameOptions",
705
+ "slug": "loadgameoptions",
706
+ "docs": "",
707
+ "tags": [],
708
+ "methods": [],
709
+ "properties": [
710
+ {
711
+ "name": "name",
712
+ "tags": [
713
+ {
714
+ "text": "0.1.0",
715
+ "name": "since"
716
+ }
717
+ ],
718
+ "docs": "",
719
+ "complexTypes": [],
720
+ "type": "string"
721
+ }
722
+ ]
723
+ }
724
+ ],
725
+ "enums": [],
726
+ "typeAliases": [
727
+ {
728
+ "name": "LeaderboardTimeSpan",
729
+ "slug": "leaderboardtimespan",
730
+ "docs": "",
731
+ "types": [
732
+ {
733
+ "text": "'daily'",
734
+ "complexTypes": []
735
+ },
736
+ {
737
+ "text": "'weekly'",
738
+ "complexTypes": []
739
+ },
740
+ {
741
+ "text": "'allTime'",
742
+ "complexTypes": []
743
+ }
744
+ ]
745
+ },
746
+ {
747
+ "name": "LeaderboardCollection",
748
+ "slug": "leaderboardcollection",
749
+ "docs": "",
750
+ "types": [
751
+ {
752
+ "text": "'public'",
753
+ "complexTypes": []
754
+ },
755
+ {
756
+ "text": "'friends'",
757
+ "complexTypes": []
758
+ }
759
+ ]
760
+ }
761
+ ],
762
+ "pluginConfigs": []
763
+ }