iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCISuspendable
@protocol ISCISuspendable <NSObject>
Classes which implement ISCISuspendable
can have updates suspended/resumed.
Note
Useful for batch operations.-
Gets a value indicating whether updates for the target are currently suspended.
Declaration
Objective-C
@property (nonatomic, readonly) BOOL isSuspended;
Swift
var isSuspended: Bool { get }
-
Suspends drawing updated on the target until the returned object is disposed, when a final draw call will be issued.
Declaration
Objective-C
- (nonnull id<ISCIUpdateSuspender>)suspendUpdates;
Swift
func suspendUpdates() -> ISCIUpdateSuspender
Return Value
ISCIUpdateSuspender
instance which suspends updated until it will be disposed. -
Resumes updates on the target, intended to e called by
ISCIUpdateSuspender
.Declaration
Objective-C
- (void)resumeUpdates:(nonnull id<ISCIUpdateSuspender>)suspender;
Swift
func resumeUpdates(_ suspender: ISCIUpdateSuspender)
Parameters
suspender
ISCIUpdateSuspender
instance which was created by-suspendUpdates
call. -
Called by
ISCIUpdateSuspender
each time a target suspender is disposed. When the final target suspender has been disposed.Declaration
Objective-C
- (void)decrementSuspend;
Swift
func decrementSuspend()