Contents

requestEject(completion:)

Requests to eject the media if permitted by the device, or to disconnect from a remote device, then executes the completion handler.

Declaration

func requestEject(completion: @escaping  @Sendable ((any Error)?) -> Void)
func requestEject() async throws

Discussion

Execution of the completion block occurs on the calling thread.

See Also

Managing a Device