WhiteboardClient
open class WhiteboardClient : Observable<WhiteboardEvent>
extension WhiteboardClient: Equatable
WhiteboardClient using to control whiteboard tools, colors, views etc
-
Actual whiteboard view
Declaration
Swift
open private(set) weak var view: WhiteboardView? { get }
-
Declaration
Swift
open private(set) var color: UIColor { get set }
-
Declaration
Swift
open private(set) var cursorColor: UIColor { get }
-
Declaration
Swift
open private(set) var brushWidth: Int { get set }
-
Declaration
Swift
open private(set) var fontSize: Int { get set }
-
Declaration
Swift
open var canUndo: Bool { get }
-
Declaration
Swift
open var canRedo: Bool { get }
-
Turns on remote cursors
Declaration
Swift
open private(set) var showCursors: Bool { get set }
-
Declaration
Swift
open private(set) var tool: WhiteboardTool { get set }
-
Active sheet id
Declaration
Swift
open private(set) var sheetId: Int { get }
-
Declaration
Swift
open var canTakeSnapshot: Bool { get }
-
Undocumented
Declaration
Swift
open var isOwned: Bool { get }
-
Sets whiteboard view
Declaration
Swift
open func setView(_ view: WhiteboardView)
-
Sets tool color
Declaration
Swift
open func setColor(_ color: UIColor)
-
Sets cursor color
Declaration
Swift
open func setCursorColor(_ cursorColor: UIColor)
-
Sets brush width
Declaration
Swift
open func setBrushWidth(_ brushWidth: Int)
-
Sets font size
Declaration
Swift
open func setFontSize(_ fontSize: Int)
-
Sets whether to show cursors or not
Declaration
Swift
open func setShowCursors(_ showCursors: Bool)
-
Sets actual tool
Declaration
Swift
open func setTool(_ tool: WhiteboardTool)
-
Declaration
Swift
open func undo()
-
Declaration
Swift
open func redo()
-
Sets background image
Declaration
Swift
open func setBackgroundImage(_ image: UIImage)
-
Creates new whiteboard sheet
Declaration
Swift
open func createNewSheet()
-
Adds given text at given point
Declaration
Swift
open func addText(_ text: String, atPoint point: CGPoint)
-
Declaration
Swift
open func takeSnapshot() -> UIImage?
Return Value
Snapshot image
-
Undocumented
Declaration
Swift
open override func onEvent(_ observer: AnyObject, _ callback: @escaping ((WhiteboardEvent) -> Void))
-
Declaration
Swift
public static func == (lhs: WhiteboardClient, rhs: WhiteboardClient) -> Bool