appmanifest

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: 8 Imported by: 1

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppBannerPromptOutcome

type AppBannerPromptOutcome int

enum: AppBannerPromptOutcome

const (
	AcceptedAppBannerPromptOutcome AppBannerPromptOutcome = iota
	DismissedAppBannerPromptOutcome
)

func AppBannerPromptOutcomeFromJS

func AppBannerPromptOutcomeFromJS(value js.Value) AppBannerPromptOutcome

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

func (*AppBannerPromptOutcome) JSValue

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

JSValue is converting this enum into a javascript object

func (AppBannerPromptOutcome) Value

func (this AppBannerPromptOutcome) Value() string

Value is converting this into javascript defined string value

type BeforeInstallPromptEvent

type BeforeInstallPromptEvent struct {
	domcore.Event
}

class: BeforeInstallPromptEvent

func BeforeInstallPromptEventFromJS

func BeforeInstallPromptEventFromJS(value js.Value) *BeforeInstallPromptEvent

BeforeInstallPromptEventFromJS is casting a js.Value into BeforeInstallPromptEvent.

func BeforeInstallPromptEventFromWrapper

func BeforeInstallPromptEventFromWrapper(input core.Wrapper) *BeforeInstallPromptEvent

BeforeInstallPromptEventFromJS is casting from something that holds a js.Value into BeforeInstallPromptEvent.

func NewBeforeInstallPromptEvent

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

func (*BeforeInstallPromptEvent) Prompt

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

type DisplayModeType

type DisplayModeType int

enum: DisplayModeType

const (
	FullscreenDisplayModeType DisplayModeType = iota
	StandaloneDisplayModeType
	MinimalUiDisplayModeType
	BrowserDisplayModeType
)

func DisplayModeTypeFromJS

func DisplayModeTypeFromJS(value js.Value) DisplayModeType

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

func (*DisplayModeType) JSValue

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

JSValue is converting this enum into a javascript object

func (DisplayModeType) Value

func (this DisplayModeType) Value() string

Value is converting this into javascript defined string value

type PromisePromptResponseObject

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

class: Promise

func PromisePromptResponseObjectFromJS

func PromisePromptResponseObjectFromJS(value js.Value) *PromisePromptResponseObject

PromisePromptResponseObjectFromJS is casting a js.Value into PromisePromptResponseObject.

func PromisePromptResponseObjectFromWrapper

func PromisePromptResponseObjectFromWrapper(input core.Wrapper) *PromisePromptResponseObject

PromisePromptResponseObjectFromJS is casting from something that holds a js.Value into PromisePromptResponseObject.

func (*PromisePromptResponseObject) Catch

func (*PromisePromptResponseObject) Finally

func (*PromisePromptResponseObject) JSValue

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

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

func (*PromisePromptResponseObject) Then

type PromisePromptResponseObjectOnFulfilled

type PromisePromptResponseObjectOnFulfilled js.Func

PromisePromptResponseObjectOnFulfilled is a javascript function type.

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

type PromisePromptResponseObjectOnFulfilledFunc

type PromisePromptResponseObjectOnFulfilledFunc func(value *PromptResponseObject)

callback: PromiseTemplateOnFulfilled

func PromisePromptResponseObjectOnFulfilledFromJS

func PromisePromptResponseObjectOnFulfilledFromJS(_value js.Value) PromisePromptResponseObjectOnFulfilledFunc

type PromisePromptResponseObjectOnRejected

type PromisePromptResponseObjectOnRejected js.Func

PromisePromptResponseObjectOnRejected is a javascript function type.

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

type PromisePromptResponseObjectOnRejectedFunc

type PromisePromptResponseObjectOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromisePromptResponseObjectOnRejectedFromJS

func PromisePromptResponseObjectOnRejectedFromJS(_value js.Value) PromisePromptResponseObjectOnRejectedFunc

type PromptResponseObject

type PromptResponseObject struct {
	UserChoice AppBannerPromptOutcome
}

dictionary: PromptResponseObject

func PromptResponseObjectFromJS

func PromptResponseObjectFromJS(value js.Value) *PromptResponseObject

PromptResponseObjectFromJS is allocating a new PromptResponseObject object and copy all values in the value javascript object.

func (*PromptResponseObject) JSValue

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

JSValue is allocating a new javascript object and copy all values

type ServiceWorkerRegistrationObject

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

dictionary: ServiceWorkerRegistrationObject

func ServiceWorkerRegistrationObjectFromJS

func ServiceWorkerRegistrationObjectFromJS(value js.Value) *ServiceWorkerRegistrationObject

ServiceWorkerRegistrationObjectFromJS is allocating a new ServiceWorkerRegistrationObject object and copy all values in the value javascript object.

func (*ServiceWorkerRegistrationObject) JSValue

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

JSValue is allocating a new javascript object and copy all values

type TextDirectionType

type TextDirectionType int

enum: TextDirectionType

const (
	LtrTextDirectionType TextDirectionType = iota
	RtlTextDirectionType
	AutoTextDirectionType
)

func TextDirectionTypeFromJS

func TextDirectionTypeFromJS(value js.Value) TextDirectionType

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

func (*TextDirectionType) JSValue

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

JSValue is converting this enum into a javascript object

func (TextDirectionType) Value

func (this TextDirectionType) Value() string

Value is converting this into javascript defined string value

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

type WebAppManifest

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

func WebAppManifestFromJS(value js.Value) *WebAppManifest

WebAppManifestFromJS is allocating a new WebAppManifest object and copy all values in the value javascript object.

func (*WebAppManifest) JSValue

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

JSValue is allocating a new javascript object and copy all values

Directories

Path Synopsis
Package appmanifestres is resources types for Application Manifest.
Package appmanifestres is resources types for Application Manifest.

Jump to

Keyboard shortcuts

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