• ContentPeerPicker
  • ContentPeerPicker

    Component that allows users to select a source/destination for content transfer More...

    Import Statement: import Ubuntu.Content 0.1

    Properties

    Signals

    Detailed Description

    This component displays a list of applications, devices and services which are appropriate for transferring a given content type with.

    Property Documentation

    completed : var


    contentType : var

    The ContentType to use when finding peers.


    customPeerModelLoader : var

    A Loader containing a ContentPeerModel.

    This can optionally be used to provide a pre-populated ContentPeerModel to this ContentPeerPicker.


    customerPeerModelLoader : Loader

    A Loader containing a ContentPeerModel.

    This can optionally be used to provide a pre-populated ContentPeerModel to this ContentPeerPicker.


    handler : var

    The ContentHandler to use when finding peers.


    peer : var

    The peer selected by the user.

    Once the peerSelected signal has been sent, this provides the ContentPeer which the user has selected.


    showTitle : bool

    Determines whether the header should be displayed.

    This makes it possible to hide the header, which can be useful if embedding the picker within another page or popup.


    Signal Documentation

    cancelPressed()

    Emitted when the user clicks the cancel button.

    The ContentPeerPicker will be hidden automatically when the user cancels the operations and the active ContentTransfer will be set to Aborted. onCancelPressed


    peerSelected()

    Emitted when a user selects a peer.

    Once this signal has been emitted the selected peer can be accessed via the peer property. onPeerSelected