Protocols
The following protocols are available globally.
-
The
RNCryptorType
protocol defines generic API to a mutable, incremental, password-based encryptor or decryptor. Its generic usage is as follows:let cryptor = Encryptor(password: "mypassword") // or Decryptor() var result NSMutableData for data in datas { result.appendData(try cryptor.update(data)) } result.appendData(try cryptor.final())
After calling
See morefinalData()
, the cryptor is no longer valid.Declaration
Swift
public protocol RNCryptorType
-
Protocol used to receive player events.
See moreDeclaration
Swift
@objc public protocol PlayerEventObserver