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 = Data() 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
-
MapContext is available for developers who wish to pass information around during the mapping process.
Declaration
Swift
public protocol MapContext
-
BaseMappable should not be implemented directly. Mappable or StaticMappable should be used instead
See moreDeclaration
Swift
public protocol BaseMappable