Header menu logo fable-electron-docs-api

Request Type

Constructors

Constructor Description

Request(frame, securityOrigin, videoRequested, audioRequested, userGesture)

Full Usage: Request(frame, securityOrigin, videoRequested, audioRequested, userGesture)

Parameters:
    frame : Option<WebFrameMain> - Frame that is requesting access to media. May be null if accessed after the frame has either navigated or been destroyed.
    securityOrigin : string - Origin of the page making the request.
    videoRequested : bool - true if the web content requested a video stream.
    audioRequested : bool - true if the web content requested an audio stream.
    userGesture : bool - Whether a user gesture was active when this request was triggered.

Returns: Request
frame : Option<WebFrameMain>

Frame that is requesting access to media. May be null if accessed after the frame has either navigated or been destroyed.

securityOrigin : string

Origin of the page making the request.

videoRequested : bool

true if the web content requested a video stream.

audioRequested : bool

true if the web content requested an audio stream.

userGesture : bool

Whether a user gesture was active when this request was triggered.

Returns: Request

Instance members

Instance member Description

this.audioRequested

Full Usage: this.audioRequested

true if the web content requested an audio stream.

this.frame

Full Usage: this.frame

Frame that is requesting access to media. May be null if accessed after the frame has either navigated or been destroyed.

this.securityOrigin

Full Usage: this.securityOrigin

Origin of the page making the request.

this.userGesture

Full Usage: this.userGesture

Whether a user gesture was active when this request was triggered.

this.videoRequested

Full Usage: this.videoRequested

true if the web content requested a video stream.

Type something to start searching.