Sailfish OS
  • Info
  • User Experience
  • Cases
  • Community
  • Developers
  • Contact
  • Get Sailfish OS
Select Page
  • Info
  • User Experience
  • Cases
  • Community
  • Developers
  • Contact
  • Get Sailfish OS

Sailfish Webview

API Documentation
  • API Documentation
  • Libsailfishapp
  • Sailfish Silica
    • Documentation
    • Icon Reference
  • Sailfish Components
    • Sailfish Accounts
    • Sailfish Bluetooth
    • Sailfish Contacts
    • Sailfish Crypto
    • Sailfish Gallery
    • Sailfish Media
    • Sailfish Pickers
    • Sailfish Secrets
    • Sailfish Share
    • Sailfish Telephony
    • Sailfish Webview
    • Amber Web Authorization
    • Amber MPRIS
  • Nemo QML Plugins
    • Configuration
    • Contacts
    • D-Bus
    • Keepalive
    • Notifications
    • Thumbnailer
  • Sailfish Middleware
    • MDM Framework
    • MDM Policy Framework
    • User Manager Daemon
  • API Documentation
  • Libsailfishapp
  • Sailfish Silica
    • Documentation
    • Icon Reference
  • Sailfish Components
    • Sailfish Accounts
    • Sailfish Bluetooth
    • Sailfish Contacts
    • Sailfish Crypto
    • Sailfish Gallery
    • Sailfish Media
    • Sailfish Pickers
    • Sailfish Secrets
    • Sailfish Share
    • Sailfish Telephony
    • Sailfish Webview
    • Amber Web Authorization
    • Amber MPRIS
  • Nemo QML Plugins
    • Configuration
    • Contacts
    • D-Bus
    • Keepalive
    • Notifications
    • Thumbnailer
  • Sailfish Middleware
    • MDM Framework
    • MDM Policy Framework
    • User Manager Daemon

Contents

  • Properties
  • Detailed Description

ContextMenuInterface QML Type

A component which defines the interface for context menu popups More...

Import Statement: import Sailfish.WebView.Popups 1.0
  • List of all members, including inherited members

Properties

  • contentType : string
  • downloadsEnabled : bool
  • imageSrc : string
  • linkHref : string
  • linkProtocol : string
  • linkTitle : string

Detailed Description

The ContextMenuInterface QML type is exposed through the Sailfish.WebView.Popups QML import namespace.

Clients who use a WebView in their application may wish to customize the appearance or behavior of the context menu in their application.

To do so, their implementation must extend the ContextMenuInterface, and then they must tell the WebView to use their implementation via the popupProvider property.

See also custompopups.

Property Documentation

contentType : string

The mime type of the resource which the user long-pressed to trigger the context menu popup


downloadsEnabled : bool

Whether the user should be given the option to download the resource to their device (e.g. if they long-pressed an image)


imageSrc : string

The source URI of the image which the user long-pressed to trigger the context menu popup


linkHref : string

The URI of the link which the user long-pressed to trigger the context menu popup


linkProtocol : string

The protocol of the link which the user long-pressed to trigger the context menu popup


linkTitle : string

The title of the link which the user long-pressed to trigger the context menu popup


  • Legal
  • Contact Us
  • Jollyboys Ltd © 2024

  • Facebook
  • Twitter
  • Mastodon
  • YouTube
  • LinkedIn