Class: MockLoginOperationCb
Implements
login_operation_cb
Constructors
Constructor
ts
new MockLoginOperationCb(object?: object, cb?: (this: object, profile: profile | null | undefined, description: string) => void): MockLoginOperationCb;Parameters
| Parameter | Type |
|---|---|
object | object |
cb | (this: object, profile: profile | null | undefined, description: string) => void |
Returns
MockLoginOperationCb
Methods
create()
ts
static create(object?: object, cb?: (this: object, profile: profile | null | undefined, description: string) => void): MockLoginOperationCb;Parameters
| Parameter | Type |
|---|---|
object | object |
cb | (this: object, profile: profile | null | undefined, description: string) => void |
Returns
MockLoginOperationCb
mock()
ts
static mock(object?: object, cb?: (this: object, profile: profile | null | undefined, description: string) => void): login_operation_cb;Parameters
| Parameter | Type |
|---|---|
object | object |
cb | (this: object, profile: profile | null | undefined, description: string) => void |
Returns
login_operation_cb
Properties
bind
ts
bind: Mock<(object: object, cb: (this: object, profile: profile | null | undefined, description: string) => void) => void>;Replace the bound callback.
Param
object
Lua object used as callback this.
Param
cb
Called with login profile and status description.
Implementation of
ts
login_operation_cb.bindcb
ts
cb:
| ((this: object, profile: profile | null | undefined, description: string) => void)
| null;clear
ts
clear: Mock<() => void>;Clear the bound callback.
Remarks
After clearing, native completion has no Lua function to call.
Implementation of
ts
login_operation_cb.clearobject
ts
object: object | null;