Protocol
ADImageEditToolCodable
public protocol ADImageEditToolCodable: AnyObject
Use to save or revert edit tool info.
Relationships
Conforms To
AnyObject
Types Conforming to ADImageEditToolCodable
ADImageEditTool
An
ADImageEditTool
would be used to edit image.
Requirements
identifier
var identifier: String
Identifier of the tool. It will be used to identify the tool when save and revert info. You might want to make sure that tools with different identifiers.
encode()
func encode() -> Any?
Archive tool info to save.
decode(from:)
func decode(from: Any)
Unarchive tool info from saved data.
Parameters
Name | Type | Description |
---|---|---|
from | Any |
Saved data. |