Takeover
Defined in: services/takeover.ts:28
Properties
Section titled “Properties”active
Section titled “active”
readonlyactive:boolean
Defined in: services/takeover.ts:36
Whether anything is covering the game right now.
Methods
Section titled “Methods”around()
Section titled “around()”around<
T>(show):Promise<T>
Defined in: services/takeover.ts:38
The common case: cover the game for the length of one promise.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”() => Promise<T>
Returns
Section titled “Returns”Promise<T>
begin()
Section titled “begin()”begin():
void
Defined in: services/takeover.ts:30
Something is now covering the game.
Returns
Section titled “Returns”void
end():
void
Defined in: services/takeover.ts:34
…and is not any more. Unbalanced calls are ignored rather than trusted: a store tells you the overlay closed, and nothing guarantees it told you it opened.
Returns
Section titled “Returns”void