presentation

package
v0.0.0-...-41cedfc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 6 Imported by: 1

Documentation

Overview

Package presentation enable Web content to access presentation displays and use them for presenting Web content.

Index

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.Value) *Availability

AvailabilityFromJS is casting a js.Value into Availability.

func AvailabilityFromWrapper

func AvailabilityFromWrapper(input core.Wrapper) *Availability

AvailabilityFromJS is casting from something that holds a js.Value 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.Value) *Connection

ConnectionFromJS is casting a js.Value into Connection.

func ConnectionFromWrapper

func ConnectionFromWrapper(input core.Wrapper) *Connection

ConnectionFromJS is casting from something that holds a js.Value 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

type ConnectionAvailableEvent struct {
	domcore.Event
}

class: PresentationConnectionAvailableEvent

func ConnectionAvailableEventFromJS

func ConnectionAvailableEventFromJS(value js.Value) *ConnectionAvailableEvent

ConnectionAvailableEventFromJS is casting a js.Value into ConnectionAvailableEvent.

func ConnectionAvailableEventFromWrapper

func ConnectionAvailableEventFromWrapper(input core.Wrapper) *ConnectionAvailableEvent

ConnectionAvailableEventFromJS is casting from something that holds a js.Value 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.Value) *ConnectionAvailableEventInit

ConnectionAvailableEventInitFromJS is allocating a new ConnectionAvailableEventInit object and copy all values in the value javascript object.

func (*ConnectionAvailableEventInit) JSValue

func (_this *ConnectionAvailableEventInit) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type ConnectionCloseEvent

type ConnectionCloseEvent struct {
	domcore.Event
}

class: PresentationConnectionCloseEvent

func ConnectionCloseEventFromJS

func ConnectionCloseEventFromJS(value js.Value) *ConnectionCloseEvent

ConnectionCloseEventFromJS is casting a js.Value into ConnectionCloseEvent.

func ConnectionCloseEventFromWrapper

func ConnectionCloseEventFromWrapper(input core.Wrapper) *ConnectionCloseEvent

ConnectionCloseEventFromJS is casting from something that holds a js.Value 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

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.Value) *ConnectionCloseEventInit

ConnectionCloseEventInitFromJS is allocating a new ConnectionCloseEventInit object and copy all values in the value javascript object.

func (*ConnectionCloseEventInit) JSValue

func (_this *ConnectionCloseEventInit) JSValue() js.Value

JSValue is allocating a new javascript 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.Value) *ConnectionList

ConnectionListFromJS is casting a js.Value into ConnectionList.

func ConnectionListFromWrapper

func ConnectionListFromWrapper(input core.Wrapper) *ConnectionList

ConnectionListFromJS is casting from something that holds a js.Value 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

type Presentation struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Presentation

func PresentationFromJS

func PresentationFromJS(value js.Value) *Presentation

PresentationFromJS is casting a js.Value into Presentation.

func PresentationFromWrapper

func PresentationFromWrapper(input core.Wrapper) *Presentation

PresentationFromJS is casting from something that holds a js.Value 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

JSValue returns the js.Value or js.Null() if _this is nil

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.Value) *PromiseAvailability

PromiseAvailabilityFromJS is casting a js.Value into PromiseAvailability.

func PromiseAvailabilityFromWrapper

func PromiseAvailabilityFromWrapper(input core.Wrapper) *PromiseAvailability

PromiseAvailabilityFromJS is casting from something that holds a js.Value 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

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromiseAvailability) Then

type PromiseAvailabilityOnFulfilled

type PromiseAvailabilityOnFulfilled js.Func

PromiseAvailabilityOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseAvailabilityOnFulfilledFunc

type PromiseAvailabilityOnFulfilledFunc func(value *Availability)

callback: PromiseTemplateOnFulfilled

func PromiseAvailabilityOnFulfilledFromJS

func PromiseAvailabilityOnFulfilledFromJS(_value js.Value) PromiseAvailabilityOnFulfilledFunc

type PromiseAvailabilityOnRejected

type PromiseAvailabilityOnRejected js.Func

PromiseAvailabilityOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseAvailabilityOnRejectedFunc

type PromiseAvailabilityOnRejectedFunc func(reason js.Value)

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.Value) *PromiseConnection

PromiseConnectionFromJS is casting a js.Value into PromiseConnection.

func PromiseConnectionFromWrapper

func PromiseConnectionFromWrapper(input core.Wrapper) *PromiseConnection

PromiseConnectionFromJS is casting from something that holds a js.Value 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

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromiseConnection) Then

func (_this *PromiseConnection) Then(onFulfilled *PromiseConnectionOnFulfilled, onRejected *PromiseConnectionOnRejected) (_result *PromiseConnection)

type PromiseConnectionOnFulfilled

type PromiseConnectionOnFulfilled js.Func

PromiseConnectionOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseConnectionOnFulfilledFunc

type PromiseConnectionOnFulfilledFunc func(value *Connection)

callback: PromiseTemplateOnFulfilled

func PromiseConnectionOnFulfilledFromJS

func PromiseConnectionOnFulfilledFromJS(_value js.Value) PromiseConnectionOnFulfilledFunc

type PromiseConnectionOnRejected

type PromiseConnectionOnRejected js.Func

PromiseConnectionOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromiseConnectionOnRejectedFunc

type PromiseConnectionOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseConnectionOnRejectedFromJS

func PromiseConnectionOnRejectedFromJS(_value js.Value) PromiseConnectionOnRejectedFunc

type Receiver

type Receiver struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: PresentationReceiver

func ReceiverFromJS

func ReceiverFromJS(value js.Value) *Receiver

ReceiverFromJS is casting a js.Value into Receiver.

func ReceiverFromWrapper

func ReceiverFromWrapper(input core.Wrapper) *Receiver

ReceiverFromJS is casting from something that holds a js.Value into Receiver.

func (*Receiver) ConnectionList

func (_this *Receiver) ConnectionList() *javascript.Promise

ConnectionList returning attribute 'connectionList' with type javascript.Promise (idl: Promise).

func (*Receiver) JSValue

func (_this *Receiver) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

type Request

type Request struct {
	domcore.EventTarget
}

class: PresentationRequest

func NewPresentationRequest

func NewPresentationRequest(urls []string) (_result *Request)

func RequestFromJS

func RequestFromJS(value js.Value) *Request

RequestFromJS is casting a js.Value into Request.

func RequestFromWrapper

func RequestFromWrapper(input core.Wrapper) *Request

RequestFromJS is casting from something that holds a js.Value 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)

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

func (u *Union) JSValue() js.Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL