Contents

requestSendPTPCommand(_:outData:completion:)

Sends a Picture Transfer Protocol (PTP) command to a camera asynchronously.

Declaration

func requestSendPTPCommand(_ ptpCommand: Data, outData ptpData: Data?, completion: @escaping  @Sendable (Data, Data, (any Error)?) -> Void)
func requestSendPTPCommand(_ ptpCommand: Data, outData ptpData: Data?) async throws -> (Data, Data)

Discussion

The block receives the response, data, and an error message, if present.

See Also

Taking Pictures