webapi: github.com/gowebapi/webapi/media/pictureinpicture Index | Files

package pictureinpicture

import "github.com/gowebapi/webapi/media/pictureinpicture"

Package pictureinpicture is to create a floating video window always on top of other windows so that users may continue consuming media while they interact with other content sites, or applications on their device.

Index

Package Files

doc.go pictureinpicture.go

type EnterPictureInPictureEvent Uses

type EnterPictureInPictureEvent struct {
    domcore.Event
}

class: EnterPictureInPictureEvent

func EnterPictureInPictureEventFromJS Uses

func EnterPictureInPictureEventFromJS(value js.Wrapper) *EnterPictureInPictureEvent

EnterPictureInPictureEventFromJS is casting a js.Wrapper into EnterPictureInPictureEvent.

func NewEnterPictureInPictureEvent Uses

func NewEnterPictureInPictureEvent(_type string, eventInitDict *EnterPictureInPictureEventInit) (_result *EnterPictureInPictureEvent)

func (*EnterPictureInPictureEvent) PictureInPictureWindow Uses

func (_this *EnterPictureInPictureEvent) PictureInPictureWindow() *PictureInPictureWindow

PictureInPictureWindow returning attribute 'pictureInPictureWindow' with type PictureInPictureWindow (idl: PictureInPictureWindow).

type EnterPictureInPictureEventInit Uses

type EnterPictureInPictureEventInit struct {
    Bubbles                bool
    Cancelable             bool
    Composed               bool
    PictureInPictureWindow *PictureInPictureWindow
}

dictionary: EnterPictureInPictureEventInit

func EnterPictureInPictureEventInitFromJS Uses

func EnterPictureInPictureEventInitFromJS(value js.Wrapper) *EnterPictureInPictureEventInit

EnterPictureInPictureEventInitFromJS is allocating a new EnterPictureInPictureEventInit object and copy all values from input javascript object

func (*EnterPictureInPictureEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type PictureInPictureWindow Uses

type PictureInPictureWindow struct {
    domcore.EventTarget
}

class: PictureInPictureWindow

func PictureInPictureWindowFromJS Uses

func PictureInPictureWindowFromJS(value js.Wrapper) *PictureInPictureWindow

PictureInPictureWindowFromJS is casting a js.Wrapper into PictureInPictureWindow.

func (*PictureInPictureWindow) AddEventResize Uses

func (_this *PictureInPictureWindow) AddEventResize(listener func(event *domcore.Event, currentTarget *PictureInPictureWindow)) js.Func

AddResize is adding doing AddEventListener for 'Resize' on target. This method is returning allocated javascript function that need to be released.

func (*PictureInPictureWindow) Height Uses

func (_this *PictureInPictureWindow) Height() int

Height returning attribute 'height' with type int (idl: long).

func (*PictureInPictureWindow) OnResize Uses

func (_this *PictureInPictureWindow) OnResize() domcore.EventHandlerFunc

OnResize returning attribute 'onresize' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*PictureInPictureWindow) SetOnResize Uses

func (_this *PictureInPictureWindow) SetOnResize(listener func(event *domcore.Event, currentTarget *PictureInPictureWindow)) js.Func

SetOnResize is assigning a function to 'onresize'. This This method is returning allocated javascript function that need to be released.

func (*PictureInPictureWindow) Width Uses

func (_this *PictureInPictureWindow) Width() int

Width returning attribute 'width' with type int (idl: long).

type PromisePictureInPictureWindow Uses

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

class: Promise

func PromisePictureInPictureWindowFromJS Uses

func PromisePictureInPictureWindowFromJS(value js.Wrapper) *PromisePictureInPictureWindow

PromisePictureInPictureWindowFromJS is casting a js.Wrapper into PromisePictureInPictureWindow.

func (*PromisePictureInPictureWindow) Catch Uses

func (_this *PromisePictureInPictureWindow) Catch(onRejected *PromisePictureInPictureWindowOnRejected) (_result *PromisePictureInPictureWindow)

func (*PromisePictureInPictureWindow) Finally Uses

func (_this *PromisePictureInPictureWindow) Finally(onFinally *javascript.PromiseFinally) (_result *PromisePictureInPictureWindow)

func (*PromisePictureInPictureWindow) JSValue Uses

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

func (*PromisePictureInPictureWindow) Then Uses

func (_this *PromisePictureInPictureWindow) Then(onFulfilled *PromisePictureInPictureWindowOnFulfilled, onRejected *PromisePictureInPictureWindowOnRejected) (_result *PromisePictureInPictureWindow)

type PromisePictureInPictureWindowOnFulfilled Uses

type PromisePictureInPictureWindowOnFulfilled js.Func

PromisePictureInPictureWindowOnFulfilled is a javascript function type.

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

func PromisePictureInPictureWindowOnFulfilledToJS Uses

func PromisePictureInPictureWindowOnFulfilledToJS(callback PromisePictureInPictureWindowOnFulfilledFunc) *PromisePictureInPictureWindowOnFulfilled

type PromisePictureInPictureWindowOnFulfilledFunc Uses

type PromisePictureInPictureWindowOnFulfilledFunc func(value *PictureInPictureWindow)

callback: PromiseTemplateOnFulfilled

func PromisePictureInPictureWindowOnFulfilledFromJS Uses

func PromisePictureInPictureWindowOnFulfilledFromJS(_value js.Value) PromisePictureInPictureWindowOnFulfilledFunc

type PromisePictureInPictureWindowOnRejected Uses

type PromisePictureInPictureWindowOnRejected js.Func

PromisePictureInPictureWindowOnRejected is a javascript function type.

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

func PromisePictureInPictureWindowOnRejectedToJS Uses

func PromisePictureInPictureWindowOnRejectedToJS(callback PromisePictureInPictureWindowOnRejectedFunc) *PromisePictureInPictureWindowOnRejected

type PromisePictureInPictureWindowOnRejectedFunc Uses

type PromisePictureInPictureWindowOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromisePictureInPictureWindowOnRejectedFromJS Uses

func PromisePictureInPictureWindowOnRejectedFromJS(_value js.Value) PromisePictureInPictureWindowOnRejectedFunc

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

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

Package pictureinpicture imports 3 packages (graph) and is imported by 1 packages. Updated 2019-09-19. Refresh now. Tools for package owners.