iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCIDisposableBase
@interface SCIDisposableBase : NSObject <ISCIDisposable>
Defines base class for the disposable object.
-
Helper method which checks if disposable is null before disposing.
Declaration
Objective-C
+ (void)tryDispose:(nonnull id<ISCIDisposable>)disposable;Swift
class func tryDispose(_ disposable: any ISCIDisposable)Parameters
disposableThe disposable instance.
-
Helper method which disposes an array of disposables.
Declaration
Objective-C
+ (void)tryDisposeArray:(nonnull NSArray<id<ISCIDisposable>> *)array;Swift
class func tryDisposeArray(_ array: [any ISCIDisposable])Parameters
arrayThe disposable array.
-
Helper method which disposes the dictionary of disposables.
Declaration
Objective-C
+ (void)tryDisposeDictionary: (nonnull NSDictionary<id, id<ISCIDisposable>> *)dictionary;Swift
class func tryDisposeDictionary(_ dictionary: [AnyHashable : any ISCIDisposable])Parameters
dictionaryThe disposable dictionary.
View on GitHub