Documentation ¶
Overview ¶
Package appmanifest is Application Manifest that is a centralized place to put metadata associated with a web application.
Index ¶
- type AppBannerPromptOutcome
- type BeforeInstallPromptEvent
- type DisplayModeType
- type PromisePromptResponseObject
- func (_this *PromisePromptResponseObject) Catch(onRejected *PromisePromptResponseObjectOnRejected) (_result *PromisePromptResponseObject)
- func (_this *PromisePromptResponseObject) Finally(onFinally *javascript.PromiseFinally) (_result *PromisePromptResponseObject)
- func (_this *PromisePromptResponseObject) JSValue() js.Value
- func (_this *PromisePromptResponseObject) Then(onFulfilled *PromisePromptResponseObjectOnFulfilled, ...) (_result *PromisePromptResponseObject)
- type PromisePromptResponseObjectOnFulfilled
- type PromisePromptResponseObjectOnFulfilledFunc
- type PromisePromptResponseObjectOnRejected
- type PromisePromptResponseObjectOnRejectedFunc
- type PromptResponseObject
- type ServiceWorkerRegistrationObject
- type TextDirectionType
- type Union
- type WebAppManifest
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 ¶
class: BeforeInstallPromptEvent
func BeforeInstallPromptEventFromJS ¶
func BeforeInstallPromptEventFromJS(value js.Wrapper) *BeforeInstallPromptEvent
BeforeInstallPromptEventFromJS is casting a js.Wrapper 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.Wrapper) *PromisePromptResponseObject
PromisePromptResponseObjectFromJS is casting a js.Wrapper into PromisePromptResponseObject.
func (*PromisePromptResponseObject) Catch ¶
func (_this *PromisePromptResponseObject) Catch(onRejected *PromisePromptResponseObjectOnRejected) (_result *PromisePromptResponseObject)
func (*PromisePromptResponseObject) Finally ¶
func (_this *PromisePromptResponseObject) Finally(onFinally *javascript.PromiseFinally) (_result *PromisePromptResponseObject)
func (*PromisePromptResponseObject) JSValue ¶
func (_this *PromisePromptResponseObject) JSValue() js.Value
func (*PromisePromptResponseObject) Then ¶
func (_this *PromisePromptResponseObject) Then(onFulfilled *PromisePromptResponseObjectOnFulfilled, onRejected *PromisePromptResponseObjectOnRejected) (_result *PromisePromptResponseObject)
type PromisePromptResponseObjectOnFulfilled ¶
PromisePromptResponseObjectOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromisePromptResponseObjectOnFulfilledToJS ¶
func PromisePromptResponseObjectOnFulfilledToJS(callback PromisePromptResponseObjectOnFulfilledFunc) *PromisePromptResponseObjectOnFulfilled
type PromisePromptResponseObjectOnFulfilledFunc ¶
type PromisePromptResponseObjectOnFulfilledFunc func(value *PromptResponseObject)
callback: PromiseTemplateOnFulfilled
func PromisePromptResponseObjectOnFulfilledFromJS ¶
func PromisePromptResponseObjectOnFulfilledFromJS(_value js.Value) PromisePromptResponseObjectOnFulfilledFunc
type PromisePromptResponseObjectOnRejected ¶
PromisePromptResponseObjectOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromisePromptResponseObjectOnRejectedToJS ¶
func PromisePromptResponseObjectOnRejectedToJS(callback PromisePromptResponseObjectOnRejectedFunc) *PromisePromptResponseObjectOnRejected
type PromisePromptResponseObjectOnRejectedFunc ¶
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.Wrapper) *PromptResponseObject
PromptResponseObjectFromJS is allocating a new PromptResponseObject object and copy all values from input javascript object
func (*PromptResponseObject) JSValue ¶
func (_this *PromptResponseObject) JSValue() js.Value
JSValue is allocating a new javasript 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.Wrapper) *ServiceWorkerRegistrationObject
ServiceWorkerRegistrationObjectFromJS is allocating a new ServiceWorkerRegistrationObject object and copy all values from input javascript object
func (*ServiceWorkerRegistrationObject) JSValue ¶
func (_this *ServiceWorkerRegistrationObject) JSValue() js.Value
JSValue is allocating a new javasript 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 ¶
func UnionFromJS ¶
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.Wrapper) *WebAppManifest
WebAppManifestFromJS is allocating a new WebAppManifest object and copy all values from input javascript object
func (*WebAppManifest) JSValue ¶
func (_this *WebAppManifest) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
Directories ¶
Path | Synopsis |
---|---|
Package appmanifestres is resources types for Application Manifest.
|
Package appmanifestres is resources types for Application Manifest. |