ADPhotoKit Documentation

Protocol ADImage​Edit​Tool​Codable

public protocol ADImageEditToolCodable: AnyObject  

Use to save or revert edit tool info.

%159 ADImageEditToolCodable ADImageEditToolCodable AnyObject AnyObject ADImageEditToolCodable->AnyObject ADImageEditTool ADImageEditTool ADImageEditTool->ADImageEditToolCodable

Conforms To

AnyObject

Types Conforming to ADImage​Edit​Tool​Codable

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

from Any

Saved data.