send(_:type:name:)
Send data to a remote target
Declaration
func send(_ inData: Data!, type inType: String!, name inName: String!) -> OBEXErrorParameters
- inData:
The data to be sent
- inType:
The type of the data to be sent that will be used in the OBEX type header, usually a mime-type. For example, use “text/x-vCard” when sending vCards. This argument is optional.
- inName:
The name of the file that the data can be referenced as.
Return Value
kOBEXSuccess, kOBEXSessionBusyError, or kOBEXBadArgumentError initially. Further results returned through the fileTransferServicesSendComplete: and fileTransferServicesSendProgress: delegate methods if initially successful.
Discussion
Use this method when you have data to send but no file to read from.