ImmutableDevice

@available(iOS 13.0.0, *)
public protocol ImmutableDevice<T>

Protocol defining immutable device operations.

  • T

    Declaration

    Swift

    associatedtype T
  • get() Asynchronous

    Retrieves a list of devices.

    Declaration

    Swift

    func get() async throws -> [T]

    Return Value

    A list of devices of type T.

  • delete(_:) Asynchronous

    Deletes the specified device.

    Declaration

    Swift

    func delete(_ device: T) async throws

    Parameters

    device

    The device to delete.