Przeglądaj źródła

Add Swift signature for sendToDevice

Adam Pritchard 8 lat temu
rodzic
commit
607f1ed953

+ 1 - 0
MobileLibrary/iOS/PsiphonTunnel/PsiphonTunnel/PsiphonTunnel.h

@@ -292,6 +292,7 @@ typedef NS_ENUM(NSInteger, PsiphonConnectionState)
  Implementing this method is *required* if whole device mode is enabled (and otherwise should not be implemented).
  The implementation of this must send the given packet to the device.
  @param packet  The data packet to send to the device.
+ Swift: @code func send(toDevice packet: NSMutableData) @endcode
  */
 - (void)sendToDevice:(NSMutableData * _Nonnull)packet;