DarwinAdvertiseSettings class

Darwin (iOS/macOS) specific advertising settings.

This class maps to CoreBluetooth's CBPeripheralManager advertising options. These settings are passed to peripheralManager.startAdvertising(_:).

CoreBluetooth only lets an app advertise a local name and service UUIDs, both of which live on AdvertiseDataCore, plus the two UUID lists below. Manufacturer data and service data cannot be advertised by a third-party app, so they are not offered here.

Reference: https://developer.apple.com/documentation/corebluetooth/cbperipheralmanager

Annotations
  • @JsonSerializable.new()

Constructors

DarwinAdvertiseSettings({List<String>? overflowServiceUuids, List<String>? solicitedServiceUuids})
Creates the iOS/macOS advertising settings.
const
DarwinAdvertiseSettings.fromJson(Map<String, dynamic> json)
Creates settings from the map toJson produces.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
overflowServiceUuids List<String>?
Overflow service UUIDs.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
solicitedServiceUuids List<String>?
Solicited service UUIDs.
final

Methods

copyWith({List<String>? overflowServiceUuids, List<String>? solicitedServiceUuids}) DarwinAdvertiseSettings
Creates a copy with optional field replacements.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
The map sent over the method channel to the platform.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited