webapi: github.com/gowebapi/webapi/appmanifest Index | Files | Directories

package appmanifest

import "github.com/gowebapi/webapi/appmanifest"

Package appmanifest is Application Manifest that is a centralized place to put metadata associated with a web application.

Index

Package Files

appmanifest.go doc.go

type AppBannerPromptOutcome Uses

type AppBannerPromptOutcome int

enum: AppBannerPromptOutcome

const (
    AcceptedAppBannerPromptOutcome AppBannerPromptOutcome = iota
    DismissedAppBannerPromptOutcome
)

func AppBannerPromptOutcomeFromJS Uses

func AppBannerPromptOutcomeFromJS(value js.Value) AppBannerPromptOutcome

AppBannerPromptOutcomeFromJS is converting a javascript value into a AppBannerPromptOutcome enum value.

func (*AppBannerPromptOutcome) JSValue Uses

func (this *AppBannerPromptOutcome) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (AppBannerPromptOutcome) Value Uses

func (this AppBannerPromptOutcome) Value() string

Value is converting this into javascript defined string value

type BeforeInstallPromptEvent Uses

type BeforeInstallPromptEvent struct {
    domcore.Event
}

class: BeforeInstallPromptEvent

func BeforeInstallPromptEventFromJS Uses

func BeforeInstallPromptEventFromJS(value js.Wrapper) *BeforeInstallPromptEvent

BeforeInstallPromptEventFromJS is casting a js.Wrapper into BeforeInstallPromptEvent.

func NewBeforeInstallPromptEvent Uses

func NewBeforeInstallPromptEvent(_type string, eventInitDict *domcore.EventInit) (_result *BeforeInstallPromptEvent)

func (*BeforeInstallPromptEvent) Prompt Uses

func (_this *BeforeInstallPromptEvent) Prompt() (_result *PromisePromptResponseObject)

type DisplayModeType Uses

type DisplayModeType int

enum: DisplayModeType

const (
    FullscreenDisplayModeType DisplayModeType = iota
    StandaloneDisplayModeType
    MinimalUiDisplayModeType
    BrowserDisplayModeType
)

func DisplayModeTypeFromJS Uses

func DisplayModeTypeFromJS(value js.Value) DisplayModeType

DisplayModeTypeFromJS is converting a javascript value into a DisplayModeType enum value.

func (*DisplayModeType) JSValue Uses

func (this *DisplayModeType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (DisplayModeType) Value Uses

func (this DisplayModeType) Value() string

Value is converting this into javascript defined string value

type PromisePromptResponseObject Uses

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

class: Promise

func PromisePromptResponseObjectFromJS Uses

func PromisePromptResponseObjectFromJS(value js.Wrapper) *PromisePromptResponseObject

PromisePromptResponseObjectFromJS is casting a js.Wrapper into PromisePromptResponseObject.

func (*PromisePromptResponseObject) Catch Uses

func (_this *PromisePromptResponseObject) Catch(onRejected *PromisePromptResponseObjectOnRejected) (_result *PromisePromptResponseObject)

func (*PromisePromptResponseObject) Finally Uses

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

func (*PromisePromptResponseObject) JSValue Uses

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

func (*PromisePromptResponseObject) Then Uses

func (_this *PromisePromptResponseObject) Then(onFulfilled *PromisePromptResponseObjectOnFulfilled, onRejected *PromisePromptResponseObjectOnRejected) (_result *PromisePromptResponseObject)

type PromisePromptResponseObjectOnFulfilled Uses

type PromisePromptResponseObjectOnFulfilled js.Func

PromisePromptResponseObjectOnFulfilled is a javascript function type.

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

func PromisePromptResponseObjectOnFulfilledToJS Uses

func PromisePromptResponseObjectOnFulfilledToJS(callback PromisePromptResponseObjectOnFulfilledFunc) *PromisePromptResponseObjectOnFulfilled

type PromisePromptResponseObjectOnFulfilledFunc Uses

type PromisePromptResponseObjectOnFulfilledFunc func(value *PromptResponseObject)

callback: PromiseTemplateOnFulfilled

func PromisePromptResponseObjectOnFulfilledFromJS Uses

func PromisePromptResponseObjectOnFulfilledFromJS(_value js.Value) PromisePromptResponseObjectOnFulfilledFunc

type PromisePromptResponseObjectOnRejected Uses

type PromisePromptResponseObjectOnRejected js.Func

PromisePromptResponseObjectOnRejected is a javascript function type.

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

func PromisePromptResponseObjectOnRejectedToJS Uses

func PromisePromptResponseObjectOnRejectedToJS(callback PromisePromptResponseObjectOnRejectedFunc) *PromisePromptResponseObjectOnRejected

type PromisePromptResponseObjectOnRejectedFunc Uses

type PromisePromptResponseObjectOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromisePromptResponseObjectOnRejectedFromJS Uses

func PromisePromptResponseObjectOnRejectedFromJS(_value js.Value) PromisePromptResponseObjectOnRejectedFunc

type PromptResponseObject Uses

type PromptResponseObject struct {
    UserChoice AppBannerPromptOutcome
}

dictionary: PromptResponseObject

func PromptResponseObjectFromJS Uses

func PromptResponseObjectFromJS(value js.Wrapper) *PromptResponseObject

PromptResponseObjectFromJS is allocating a new PromptResponseObject object and copy all values from input javascript object

func (*PromptResponseObject) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type ServiceWorkerRegistrationObject Uses

type ServiceWorkerRegistrationObject struct {
    Src            string
    Scope          string
    Type           htmlcommon.WorkerType
    UpdateViaCache serviceworker.ServiceWorkerUpdateViaCache
}

dictionary: ServiceWorkerRegistrationObject

func ServiceWorkerRegistrationObjectFromJS Uses

func ServiceWorkerRegistrationObjectFromJS(value js.Wrapper) *ServiceWorkerRegistrationObject

ServiceWorkerRegistrationObjectFromJS is allocating a new ServiceWorkerRegistrationObject object and copy all values from input javascript object

func (*ServiceWorkerRegistrationObject) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type TextDirectionType Uses

type TextDirectionType int

enum: TextDirectionType

const (
    LtrTextDirectionType TextDirectionType = iota
    RtlTextDirectionType
    AutoTextDirectionType
)

func TextDirectionTypeFromJS Uses

func TextDirectionTypeFromJS(value js.Value) TextDirectionType

TextDirectionTypeFromJS is converting a javascript value into a TextDirectionType enum value.

func (*TextDirectionType) JSValue Uses

func (this *TextDirectionType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (TextDirectionType) Value Uses

func (this TextDirectionType) Value() string

Value is converting this into javascript defined string value

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

type WebAppManifest Uses

type WebAppManifest struct {
    Dir                       TextDirectionType
    Lang                      string
    Name                      string
    ShortName                 string
    Description               string
    Icons                     []*appmenifestres.ImageResource
    Screenshots               []*appmenifestres.ImageResource
    Categories                []string
    IarcRatingId              string
    StartUrl                  string
    Display                   DisplayModeType
    Orientation               orientation.OrientationLockType
    ThemeColor                string
    BackgroundColor           string
    Scope                     string
    Serviceworker             *ServiceWorkerRegistrationObject
    RelatedApplications       []*appmenifestres.ExternalApplicationResource
    PreferRelatedApplications bool
}

dictionary: WebAppManifest

func WebAppManifestFromJS Uses

func WebAppManifestFromJS(value js.Wrapper) *WebAppManifest

WebAppManifestFromJS is allocating a new WebAppManifest object and copy all values from input javascript object

func (*WebAppManifest) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

Directories

PathSynopsis
appmenifestresPackage appmanifestres is resources types for Application Manifest.

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