org.bluez.LEAdvertisement1 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bluez-dbus Show documentation
Show all versions of bluez-dbus Show documentation
Java native bluetooth library which uses bluez via dbus (linux only)
package org.bluez;
import org.freedesktop.dbus.interfaces.DBusInterface;
import org.freedesktop.dbus.interfaces.Properties;
/**
* File generated - 2018-07-25.
* Based on bluez Documentation: advertising-api.txt.
*
* Service: org.bluez
* Interface: org.bluez.LEAdvertisement1
*
* Object path:
* freely definable
*
* Supported properties:
*
* string Type
*
* Determines the type of advertising packet requested.
*
* Possible values: "broadcast" or "peripheral"
*
* array{string} ServiceUUIDs
*
* List of UUIDs to include in the "Service UUID" field of
* the Advertising Data.
*
* dict ManufacturerData
*
* Manufactuer Data fields to include in
* the Advertising Data. Keys are the Manufacturer ID
* to associate with the data.
*
* array{string} SolicitUUIDs
*
* Array of UUIDs to include in "Service Solicitation"
* Advertisement Data.
*
* dict ServiceData
*
* Service Data elements to include. The keys are the
* UUID to associate with the data.
*
* dict Data [Experimental]
*
* Advertising Type to include in the Advertising
* Data. Key is the advertising type and value is the
* data as byte array.
*
* Note: Types already handled by other properties shall
* not be used.
*
* Possible values:
* <type> <byte array>
* ...
*
* Example:
* <Transport Discovery> <Organization Flags...>
* 0x26 0x01 0x01...
*
* bool Discoverable [Experimental]
*
* Advertise as general discoverable. When present this
* will override adapter Discoverable property.
*
* Note: This property shall not be set when Type is set
* to broadcast.
*
* uint16 DiscoverableTimeout [Experimental]
*
* The discoverable timeout in seconds. A value of zero
* means that the timeout is disabled and it will stay in
* discoverable/limited mode forever.
*
* Note: This property shall not be set when Type is set
* to broadcast.
*
* array{string} Includes
*
* List of features to be included in the advertising
* packet.
*
* Possible values: as found on
* LEAdvertisingManager.SupportedIncludes
*
* string LocalName
*
* Local name to be used in the advertising report. If the
* string is too big to fit into the packet it will be
* truncated.
*
* If this property is available 'local-name' cannot be
* present in the Includes.
*
* uint16 Appearance
*
* Appearance to be used in the advertising report.
*
* Possible values: as found on GAP Service.
*
* uint16_t Duration
*
* Duration of the advertisement in seconds. If there are
* other applications advertising no duration is set the
* default is 2 seconds.
*
* uint16_t Timeout
*
* Timeout of the advertisement in seconds. This defines
* the lifetime of the advertisement.
*
*
*/
public interface LEAdvertisement1 extends DBusInterface, Properties {
/**
* From bluez documentation:
*
* This method gets called when the service daemon
* removes the Advertisement. A client can use it to do
* cleanup tasks. There is no need to call
* UnregisterAdvertisement because when this method gets
* called it has already been unregistered.
*
*/
void Release();
}