Search
Preparing search index...
The search index is not available
Sociably
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Sociably
webview/client
default
Class default<Authenticator, Value>
Type parameters
Authenticator
:
AnyClientAuthenticator
=
AnyClientAuthenticator
Value
:
EventValue
=
EventValue
Hierarchy
ClientEmitter
<
ClientEventContext
<
Authenticator
,
Value
|
ConnectEventValue
|
DisconnectEventValue
>
>
default
Index
Constructors
constructor
Properties
is
Mockup
Mode
Accessors
auth
Context
channel
is
Closed
is
Connected
platform
user
Methods
_emit
Error
_emit
Event
close
close
Webview
on
Error
on
Event
remove
Error
Listener
remove
Event
Listener
send
Constructors
constructor
new default
<
Authenticator
,
Value
>
(
__namedParameters
:
ClientOptions
<
Authenticator
>
)
:
default
<
Authenticator
,
Value
>
Type parameters
Authenticator
:
WebviewClientAuthenticator
<
unknown
,
unknown
,
AnyAuthContext
,
Authenticator
>
=
AnyClientAuthenticator
Value
:
EventValue
<
string
,
string
,
any
>
=
EventValue
<
string
,
string
,
any
>
Parameters
__namedParameters:
ClientOptions
<
Authenticator
>
Returns
default
<
Authenticator
,
Value
>
Properties
is
Mockup
Mode
is
Mockup
Mode
:
boolean
Accessors
auth
Context
get
authContext
(
)
:
null
|
ContextOfAuthenticator
<
Authenticator
>
Returns
null
|
ContextOfAuthenticator
<
Authenticator
>
channel
get
channel
(
)
:
null
|
WebviewConnection
Returns
null
|
WebviewConnection
is
Closed
get
isClosed
(
)
:
boolean
Returns
boolean
is
Connected
get
isConnected
(
)
:
boolean
Returns
boolean
platform
get
platform
(
)
:
undefined
|
string
Returns
undefined
|
string
user
get
user
(
)
:
null
|
UserOfContext
<
ContextOfAuthenticator
<
Authenticator
>
>
Returns
null
|
UserOfContext
<
ContextOfAuthenticator
<
Authenticator
>
>
Methods
Protected
_emit
Error
_emit
Error
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Protected
_emit
Event
_emit
Event
(
ctx
:
ClientEventContext
<
Authenticator
,
ConnectEventValue
|
DisconnectEventValue
|
Value
>
)
:
void
Parameters
ctx:
ClientEventContext
<
Authenticator
,
ConnectEventValue
|
DisconnectEventValue
|
Value
>
Returns
void
close
close
(
code
?:
number
, reason
?:
string
)
:
void
Parameters
Optional
code:
number
Optional
reason:
string
Returns
void
close
Webview
close
Webview
(
)
:
boolean
Try close the webview. Return whether it's supported by current platform
Returns
boolean
on
Error
on
Error
(
listener
:
(
err
:
Error
)
=>
void
)
:
void
Parameters
listener:
(
err
:
Error
)
=>
void
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
void
on
Event
on
Event
(
listener
:
(
ctx
:
ClientEventContext
<
Authenticator
,
ConnectEventValue
|
DisconnectEventValue
|
Value
>
)
=>
void
)
:
void
Parameters
listener:
(
ctx
:
ClientEventContext
<
Authenticator
,
ConnectEventValue
|
DisconnectEventValue
|
Value
>
)
=>
void
(
ctx
:
ClientEventContext
<
Authenticator
,
ConnectEventValue
|
DisconnectEventValue
|
Value
>
)
:
void
Parameters
ctx:
ClientEventContext
<
Authenticator
,
ConnectEventValue
|
DisconnectEventValue
|
Value
>
Returns
void
Returns
void
remove
Error
Listener
remove
Error
Listener
(
listener
:
(
err
:
Error
)
=>
void
)
:
boolean
Parameters
listener:
(
err
:
Error
)
=>
void
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
boolean
remove
Event
Listener
remove
Event
Listener
(
listener
:
(
ctx
:
ClientEventContext
<
Authenticator
,
ConnectEventValue
|
DisconnectEventValue
|
Value
>
)
=>
void
)
:
boolean
Parameters
listener:
(
ctx
:
ClientEventContext
<
Authenticator
,
ConnectEventValue
|
DisconnectEventValue
|
Value
>
)
=>
void
(
ctx
:
ClientEventContext
<
Authenticator
,
ConnectEventValue
|
DisconnectEventValue
|
Value
>
)
:
void
Parameters
ctx:
ClientEventContext
<
Authenticator
,
ConnectEventValue
|
DisconnectEventValue
|
Value
>
Returns
void
Returns
boolean
send
send
(
content
:
EventInput
|
EventInput
[]
)
:
Promise
<
void
>
Parameters
content:
EventInput
|
EventInput
[]
Returns
Promise
<
void
>
Modules
auth
core
create-
app
dev-
tools
dialogflow
http
line
messenger
next
redis-
state
script
stream
telegram
twitter
websocket
webview
default
constructor
is
Mockup
Mode
auth
Context
channel
is
Closed
is
Connected
platform
user
_emit
Error
_emit
Event
close
close
Webview
on
Error
on
Event
remove
Error
Listener
remove
Event
Listener
send
Generated using
TypeDoc
Try close the webview. Return whether it's supported by current platform