Documentation ¶
Overview ¶
Package presentation enable Web content to access presentation displays and use them for presenting Web content.
Index ¶
- type Availability
- func (_this *Availability) AddEventChange(listener func(event *domcore.Event, currentTarget *Availability)) js.Func
- func (_this *Availability) OnChange() domcore.EventHandlerFunc
- func (_this *Availability) SetOnChange(listener func(event *domcore.Event, currentTarget *Availability)) js.Func
- func (_this *Availability) Value() bool
- type Connection
- func (_this *Connection) AddEventClose(listener func(event *ConnectionCloseEvent, currentTarget *Connection)) js.Func
- func (_this *Connection) AddEventConnect(listener func(event *domcore.Event, currentTarget *Connection)) js.Func
- func (_this *Connection) AddEventMessage(listener func(event *channel.MessageEvent, currentTarget *Connection)) js.Func
- func (_this *Connection) AddEventTerminate(listener func(event *domcore.Event, currentTarget *Connection)) js.Func
- func (_this *Connection) BinaryType() channel.BinaryType
- func (_this *Connection) Close()
- func (_this *Connection) Id() string
- func (_this *Connection) OnClose() domcore.EventHandlerFunc
- func (_this *Connection) OnConnect() domcore.EventHandlerFunc
- func (_this *Connection) OnMessage() domcore.EventHandlerFunc
- func (_this *Connection) OnTerminate() domcore.EventHandlerFunc
- func (_this *Connection) Send(message string)
- func (_this *Connection) Send2(data *file.Blob)
- func (_this *Connection) Send3(data *javascript.ArrayBuffer)
- func (_this *Connection) Send4(data *Union)
- func (_this *Connection) SetBinaryType(value channel.BinaryType)
- func (_this *Connection) SetOnClose(listener func(event *ConnectionCloseEvent, currentTarget *Connection)) js.Func
- func (_this *Connection) SetOnConnect(listener func(event *domcore.Event, currentTarget *Connection)) js.Func
- func (_this *Connection) SetOnMessage(listener func(event *channel.MessageEvent, currentTarget *Connection)) js.Func
- func (_this *Connection) SetOnTerminate(listener func(event *domcore.Event, currentTarget *Connection)) js.Func
- func (_this *Connection) State() ConnectionState
- func (_this *Connection) Terminate()
- func (_this *Connection) Url() string
- type ConnectionAvailableEvent
- type ConnectionAvailableEventInit
- type ConnectionCloseEvent
- type ConnectionCloseEventInit
- type ConnectionCloseReason
- type ConnectionList
- func (_this *ConnectionList) AddEventConnectionAvailable(listener func(event *ConnectionAvailableEvent, currentTarget *ConnectionList)) js.Func
- func (_this *ConnectionList) Connections() *javascript.FrozenArray
- func (_this *ConnectionList) OnConnectionAvailable() domcore.EventHandlerFunc
- func (_this *ConnectionList) SetOnConnectionAvailable(listener func(event *ConnectionAvailableEvent, currentTarget *ConnectionList)) js.Func
- type ConnectionState
- type Presentation
- type PromiseAvailability
- func (_this *PromiseAvailability) Catch(onRejected *PromiseAvailabilityOnRejected) (_result *PromiseAvailability)
- func (_this *PromiseAvailability) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseAvailability)
- func (_this *PromiseAvailability) JSValue() js.Value
- func (_this *PromiseAvailability) Then(onFulfilled *PromiseAvailabilityOnFulfilled, ...) (_result *PromiseAvailability)
- type PromiseAvailabilityOnFulfilled
- type PromiseAvailabilityOnFulfilledFunc
- type PromiseAvailabilityOnRejected
- type PromiseAvailabilityOnRejectedFunc
- type PromiseConnection
- func (_this *PromiseConnection) Catch(onRejected *PromiseConnectionOnRejected) (_result *PromiseConnection)
- func (_this *PromiseConnection) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseConnection)
- func (_this *PromiseConnection) JSValue() js.Value
- func (_this *PromiseConnection) Then(onFulfilled *PromiseConnectionOnFulfilled, ...) (_result *PromiseConnection)
- type PromiseConnectionOnFulfilled
- type PromiseConnectionOnFulfilledFunc
- type PromiseConnectionOnRejected
- type PromiseConnectionOnRejectedFunc
- type Receiver
- type Request
- func (_this *Request) AddEventConnectionAvailable(listener func(event *ConnectionAvailableEvent, currentTarget *Request)) js.Func
- func (_this *Request) GetAvailability() (_result *PromiseAvailability)
- func (_this *Request) OnConnectionAvailable() domcore.EventHandlerFunc
- func (_this *Request) Reconnect(presentationId string) (_result *PromiseConnection)
- func (_this *Request) SetOnConnectionAvailable(listener func(event *ConnectionAvailableEvent, currentTarget *Request)) js.Func
- func (_this *Request) Start() (_result *PromiseConnection)
- type Union
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Availability ¶
type Availability struct {
domcore.EventTarget
}
class: PresentationAvailability
func AvailabilityFromJS ¶
func AvailabilityFromJS(value js.Wrapper) *Availability
AvailabilityFromJS is casting a js.Wrapper into Availability.
func (*Availability) AddEventChange ¶
func (_this *Availability) AddEventChange(listener func(event *domcore.Event, currentTarget *Availability)) js.Func
AddChange is adding doing AddEventListener for 'Change' on target. This method is returning allocated javascript function that need to be released.
func (*Availability) OnChange ¶
func (_this *Availability) OnChange() domcore.EventHandlerFunc
OnChange returning attribute 'onchange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*Availability) SetOnChange ¶
func (_this *Availability) SetOnChange(listener func(event *domcore.Event, currentTarget *Availability)) js.Func
SetOnChange is assigning a function to 'onchange'. This This method is returning allocated javascript function that need to be released.
func (*Availability) Value ¶
func (_this *Availability) Value() bool
Value returning attribute 'value' with type bool (idl: boolean).
type Connection ¶
type Connection struct {
domcore.EventTarget
}
class: PresentationConnection
func ConnectionFromJS ¶
func ConnectionFromJS(value js.Wrapper) *Connection
ConnectionFromJS is casting a js.Wrapper into Connection.
func (*Connection) AddEventClose ¶
func (_this *Connection) AddEventClose(listener func(event *ConnectionCloseEvent, currentTarget *Connection)) js.Func
AddClose is adding doing AddEventListener for 'Close' on target. This method is returning allocated javascript function that need to be released.
func (*Connection) AddEventConnect ¶
func (_this *Connection) AddEventConnect(listener func(event *domcore.Event, currentTarget *Connection)) js.Func
AddConnect is adding doing AddEventListener for 'Connect' on target. This method is returning allocated javascript function that need to be released.
func (*Connection) AddEventMessage ¶
func (_this *Connection) AddEventMessage(listener func(event *channel.MessageEvent, currentTarget *Connection)) js.Func
AddMessage is adding doing AddEventListener for 'Message' on target. This method is returning allocated javascript function that need to be released.
func (*Connection) AddEventTerminate ¶
func (_this *Connection) AddEventTerminate(listener func(event *domcore.Event, currentTarget *Connection)) js.Func
AddTerminate is adding doing AddEventListener for 'Terminate' on target. This method is returning allocated javascript function that need to be released.
func (*Connection) BinaryType ¶
func (_this *Connection) BinaryType() channel.BinaryType
BinaryType returning attribute 'binaryType' with type channel.BinaryType (idl: BinaryType).
func (*Connection) Close ¶
func (_this *Connection) Close()
func (*Connection) Id ¶
func (_this *Connection) Id() string
Id returning attribute 'id' with type string (idl: USVString).
func (*Connection) OnClose ¶
func (_this *Connection) OnClose() domcore.EventHandlerFunc
OnClose returning attribute 'onclose' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*Connection) OnConnect ¶
func (_this *Connection) OnConnect() domcore.EventHandlerFunc
OnConnect returning attribute 'onconnect' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*Connection) OnMessage ¶
func (_this *Connection) OnMessage() domcore.EventHandlerFunc
OnMessage returning attribute 'onmessage' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*Connection) OnTerminate ¶
func (_this *Connection) OnTerminate() domcore.EventHandlerFunc
OnTerminate returning attribute 'onterminate' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*Connection) Send ¶
func (_this *Connection) Send(message string)
func (*Connection) Send2 ¶
func (_this *Connection) Send2(data *file.Blob)
func (*Connection) Send3 ¶
func (_this *Connection) Send3(data *javascript.ArrayBuffer)
func (*Connection) Send4 ¶
func (_this *Connection) Send4(data *Union)
func (*Connection) SetBinaryType ¶
func (_this *Connection) SetBinaryType(value channel.BinaryType)
SetBinaryType setting attribute 'binaryType' with type channel.BinaryType (idl: BinaryType).
func (*Connection) SetOnClose ¶
func (_this *Connection) SetOnClose(listener func(event *ConnectionCloseEvent, currentTarget *Connection)) js.Func
SetOnClose is assigning a function to 'onclose'. This This method is returning allocated javascript function that need to be released.
func (*Connection) SetOnConnect ¶
func (_this *Connection) SetOnConnect(listener func(event *domcore.Event, currentTarget *Connection)) js.Func
SetOnConnect is assigning a function to 'onconnect'. This This method is returning allocated javascript function that need to be released.
func (*Connection) SetOnMessage ¶
func (_this *Connection) SetOnMessage(listener func(event *channel.MessageEvent, currentTarget *Connection)) js.Func
SetOnMessage is assigning a function to 'onmessage'. This This method is returning allocated javascript function that need to be released.
func (*Connection) SetOnTerminate ¶
func (_this *Connection) SetOnTerminate(listener func(event *domcore.Event, currentTarget *Connection)) js.Func
SetOnTerminate is assigning a function to 'onterminate'. This This method is returning allocated javascript function that need to be released.
func (*Connection) State ¶
func (_this *Connection) State() ConnectionState
State returning attribute 'state' with type ConnectionState (idl: PresentationConnectionState).
func (*Connection) Terminate ¶
func (_this *Connection) Terminate()
func (*Connection) Url ¶
func (_this *Connection) Url() string
Url returning attribute 'url' with type string (idl: USVString).
type ConnectionAvailableEvent ¶
class: PresentationConnectionAvailableEvent
func ConnectionAvailableEventFromJS ¶
func ConnectionAvailableEventFromJS(value js.Wrapper) *ConnectionAvailableEvent
ConnectionAvailableEventFromJS is casting a js.Wrapper into ConnectionAvailableEvent.
func NewPresentationConnectionAvailableEvent ¶
func NewPresentationConnectionAvailableEvent(_type string, eventInitDict *ConnectionAvailableEventInit) (_result *ConnectionAvailableEvent)
func (*ConnectionAvailableEvent) Connection ¶
func (_this *ConnectionAvailableEvent) Connection() *Connection
Connection returning attribute 'connection' with type Connection (idl: PresentationConnection).
type ConnectionAvailableEventInit ¶
type ConnectionAvailableEventInit struct { Bubbles bool Cancelable bool Composed bool Connection *Connection }
dictionary: PresentationConnectionAvailableEventInit
func ConnectionAvailableEventInitFromJS ¶
func ConnectionAvailableEventInitFromJS(value js.Wrapper) *ConnectionAvailableEventInit
ConnectionAvailableEventInitFromJS is allocating a new ConnectionAvailableEventInit object and copy all values from input javascript object
func (*ConnectionAvailableEventInit) JSValue ¶
func (_this *ConnectionAvailableEventInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type ConnectionCloseEvent ¶
class: PresentationConnectionCloseEvent
func ConnectionCloseEventFromJS ¶
func ConnectionCloseEventFromJS(value js.Wrapper) *ConnectionCloseEvent
ConnectionCloseEventFromJS is casting a js.Wrapper into ConnectionCloseEvent.
func NewPresentationConnectionCloseEvent ¶
func NewPresentationConnectionCloseEvent(_type string, eventInitDict *ConnectionCloseEventInit) (_result *ConnectionCloseEvent)
func (*ConnectionCloseEvent) Message ¶
func (_this *ConnectionCloseEvent) Message() string
Message returning attribute 'message' with type string (idl: DOMString).
func (*ConnectionCloseEvent) Reason ¶
func (_this *ConnectionCloseEvent) Reason() ConnectionCloseReason
Reason returning attribute 'reason' with type ConnectionCloseReason (idl: PresentationConnectionCloseReason).
type ConnectionCloseEventInit ¶
type ConnectionCloseEventInit struct { Bubbles bool Cancelable bool Composed bool Reason ConnectionCloseReason Message string }
dictionary: PresentationConnectionCloseEventInit
func ConnectionCloseEventInitFromJS ¶
func ConnectionCloseEventInitFromJS(value js.Wrapper) *ConnectionCloseEventInit
ConnectionCloseEventInitFromJS is allocating a new ConnectionCloseEventInit object and copy all values from input javascript object
func (*ConnectionCloseEventInit) JSValue ¶
func (_this *ConnectionCloseEventInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type ConnectionCloseReason ¶
type ConnectionCloseReason int
enum: PresentationConnectionCloseReason
const ( ReasonError ConnectionCloseReason = iota ReasonClosed ReasonWentaway )
func ConnectionCloseReasonFromJS ¶
func ConnectionCloseReasonFromJS(value js.Value) ConnectionCloseReason
ConnectionCloseReasonFromJS is converting a javascript value into a ConnectionCloseReason enum value.
func (*ConnectionCloseReason) JSValue ¶
func (this *ConnectionCloseReason) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (ConnectionCloseReason) Value ¶
func (this ConnectionCloseReason) Value() string
Value is converting this into javascript defined string value
type ConnectionList ¶
type ConnectionList struct {
domcore.EventTarget
}
class: PresentationConnectionList
func ConnectionListFromJS ¶
func ConnectionListFromJS(value js.Wrapper) *ConnectionList
ConnectionListFromJS is casting a js.Wrapper into ConnectionList.
func (*ConnectionList) AddEventConnectionAvailable ¶
func (_this *ConnectionList) AddEventConnectionAvailable(listener func(event *ConnectionAvailableEvent, currentTarget *ConnectionList)) js.Func
AddConnectionAvailable is adding doing AddEventListener for 'ConnectionAvailable' on target. This method is returning allocated javascript function that need to be released.
func (*ConnectionList) Connections ¶
func (_this *ConnectionList) Connections() *javascript.FrozenArray
Connections returning attribute 'connections' with type javascript.FrozenArray (idl: FrozenArray).
func (*ConnectionList) OnConnectionAvailable ¶
func (_this *ConnectionList) OnConnectionAvailable() domcore.EventHandlerFunc
OnConnectionAvailable returning attribute 'onconnectionavailable' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*ConnectionList) SetOnConnectionAvailable ¶
func (_this *ConnectionList) SetOnConnectionAvailable(listener func(event *ConnectionAvailableEvent, currentTarget *ConnectionList)) js.Func
SetOnConnectionAvailable is assigning a function to 'onconnectionavailable'. This This method is returning allocated javascript function that need to be released.
type ConnectionState ¶
type ConnectionState int
enum: PresentationConnectionState
const ( StateConnecting ConnectionState = iota StateConnected StateClosed StateTerminated )
func ConnectionStateFromJS ¶
func ConnectionStateFromJS(value js.Value) ConnectionState
ConnectionStateFromJS is converting a javascript value into a ConnectionState enum value.
func (*ConnectionState) JSValue ¶
func (this *ConnectionState) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (ConnectionState) Value ¶
func (this ConnectionState) Value() string
Value is converting this into javascript defined string value
type Presentation ¶
class: Presentation
func PresentationFromJS ¶
func PresentationFromJS(value js.Wrapper) *Presentation
PresentationFromJS is casting a js.Wrapper into Presentation.
func (*Presentation) DefaultRequest ¶
func (_this *Presentation) DefaultRequest() *Request
DefaultRequest returning attribute 'defaultRequest' with type Request (idl: PresentationRequest).
func (*Presentation) JSValue ¶
func (_this *Presentation) JSValue() js.Value
func (*Presentation) Receiver ¶
func (_this *Presentation) Receiver() *Receiver
Receiver returning attribute 'receiver' with type Receiver (idl: PresentationReceiver).
func (*Presentation) SetDefaultRequest ¶
func (_this *Presentation) SetDefaultRequest(value *Request)
SetDefaultRequest setting attribute 'defaultRequest' with type Request (idl: PresentationRequest).
type PromiseAvailability ¶
type PromiseAvailability struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromiseAvailabilityFromJS ¶
func PromiseAvailabilityFromJS(value js.Wrapper) *PromiseAvailability
PromiseAvailabilityFromJS is casting a js.Wrapper into PromiseAvailability.
func (*PromiseAvailability) Catch ¶
func (_this *PromiseAvailability) Catch(onRejected *PromiseAvailabilityOnRejected) (_result *PromiseAvailability)
func (*PromiseAvailability) Finally ¶
func (_this *PromiseAvailability) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseAvailability)
func (*PromiseAvailability) JSValue ¶
func (_this *PromiseAvailability) JSValue() js.Value
func (*PromiseAvailability) Then ¶
func (_this *PromiseAvailability) Then(onFulfilled *PromiseAvailabilityOnFulfilled, onRejected *PromiseAvailabilityOnRejected) (_result *PromiseAvailability)
type PromiseAvailabilityOnFulfilled ¶
PromiseAvailabilityOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseAvailabilityOnFulfilledToJS ¶
func PromiseAvailabilityOnFulfilledToJS(callback PromiseAvailabilityOnFulfilledFunc) *PromiseAvailabilityOnFulfilled
type PromiseAvailabilityOnFulfilledFunc ¶
type PromiseAvailabilityOnFulfilledFunc func(value *Availability)
callback: PromiseTemplateOnFulfilled
func PromiseAvailabilityOnFulfilledFromJS ¶
func PromiseAvailabilityOnFulfilledFromJS(_value js.Value) PromiseAvailabilityOnFulfilledFunc
type PromiseAvailabilityOnRejected ¶
PromiseAvailabilityOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseAvailabilityOnRejectedToJS ¶
func PromiseAvailabilityOnRejectedToJS(callback PromiseAvailabilityOnRejectedFunc) *PromiseAvailabilityOnRejected
type PromiseAvailabilityOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseAvailabilityOnRejectedFromJS ¶
func PromiseAvailabilityOnRejectedFromJS(_value js.Value) PromiseAvailabilityOnRejectedFunc
type PromiseConnection ¶
type PromiseConnection struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromiseConnectionFromJS ¶
func PromiseConnectionFromJS(value js.Wrapper) *PromiseConnection
PromiseConnectionFromJS is casting a js.Wrapper into PromiseConnection.
func (*PromiseConnection) Catch ¶
func (_this *PromiseConnection) Catch(onRejected *PromiseConnectionOnRejected) (_result *PromiseConnection)
func (*PromiseConnection) Finally ¶
func (_this *PromiseConnection) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseConnection)
func (*PromiseConnection) JSValue ¶
func (_this *PromiseConnection) JSValue() js.Value
func (*PromiseConnection) Then ¶
func (_this *PromiseConnection) Then(onFulfilled *PromiseConnectionOnFulfilled, onRejected *PromiseConnectionOnRejected) (_result *PromiseConnection)
type PromiseConnectionOnFulfilled ¶
PromiseConnectionOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseConnectionOnFulfilledToJS ¶
func PromiseConnectionOnFulfilledToJS(callback PromiseConnectionOnFulfilledFunc) *PromiseConnectionOnFulfilled
type PromiseConnectionOnFulfilledFunc ¶
type PromiseConnectionOnFulfilledFunc func(value *Connection)
callback: PromiseTemplateOnFulfilled
func PromiseConnectionOnFulfilledFromJS ¶
func PromiseConnectionOnFulfilledFromJS(_value js.Value) PromiseConnectionOnFulfilledFunc
type PromiseConnectionOnRejected ¶
PromiseConnectionOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseConnectionOnRejectedToJS ¶
func PromiseConnectionOnRejectedToJS(callback PromiseConnectionOnRejectedFunc) *PromiseConnectionOnRejected
type PromiseConnectionOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseConnectionOnRejectedFromJS ¶
func PromiseConnectionOnRejectedFromJS(_value js.Value) PromiseConnectionOnRejectedFunc
type Receiver ¶
class: PresentationReceiver
func ReceiverFromJS ¶
ReceiverFromJS is casting a js.Wrapper into Receiver.
func (*Receiver) ConnectionList ¶
func (_this *Receiver) ConnectionList() *javascript.Promise
ConnectionList returning attribute 'connectionList' with type javascript.Promise (idl: Promise).
type Request ¶
type Request struct {
domcore.EventTarget
}
class: PresentationRequest
func NewPresentationRequest ¶
func RequestFromJS ¶
RequestFromJS is casting a js.Wrapper into Request.
func (*Request) AddEventConnectionAvailable ¶
func (_this *Request) AddEventConnectionAvailable(listener func(event *ConnectionAvailableEvent, currentTarget *Request)) js.Func
AddConnectionAvailable is adding doing AddEventListener for 'ConnectionAvailable' on target. This method is returning allocated javascript function that need to be released.
func (*Request) GetAvailability ¶
func (_this *Request) GetAvailability() (_result *PromiseAvailability)
func (*Request) OnConnectionAvailable ¶
func (_this *Request) OnConnectionAvailable() domcore.EventHandlerFunc
OnConnectionAvailable returning attribute 'onconnectionavailable' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*Request) Reconnect ¶
func (_this *Request) Reconnect(presentationId string) (_result *PromiseConnection)
func (*Request) SetOnConnectionAvailable ¶
func (_this *Request) SetOnConnectionAvailable(listener func(event *ConnectionAvailableEvent, currentTarget *Request)) js.Func
SetOnConnectionAvailable is assigning a function to 'onconnectionavailable'. This This method is returning allocated javascript function that need to be released.
func (*Request) Start ¶
func (_this *Request) Start() (_result *PromiseConnection)