Skip to content

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 ​

ParameterType
objectobject
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 ​

ParameterType
objectobject
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 ​

ParameterType
objectobject
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.bind

cb ​

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.clear

object ​

ts
object: object | null;