Other Type Definitions
The following type definitions are available globally.
-
A block to be called once
loggingLevelis set to a higher value thanDingiLoggingLevelNone.Declaration
Objective-C
typedef void (^DingiLoggingBlockHandler)(DingiLoggingLevel, NSString *_Nonnull, NSUInteger, NSString *_Nonnull)Swift
typealias DingiLoggingBlockHandler = (DingiLoggingLevel, String, UInt, String) -> VoidParameters
loggingLevelThe message logging level.
filePathThe description of the file and method for the calling message.
lineThe line where the message is logged.
messageThe logging message.
-
A block to processes the result or error of a snapshot request.
Declaration
Objective-C
typedef void (^DingiMapSnapshotCompletionHandler)(DingiMapSnapshot *_Nullable, NSError *_Nullable)Swift
typealias DingiMapSnapshotCompletionHandler = (DingiMapSnapshot?, Error?) -> VoidParameters
snapshotThe
DingiMapSnapshotthat was generated ornilif an error occurred.errorThe error that occured or
nilwhen successful.
-
A key in the
userInfoproperty of a notification posted byDingiOfflinePack.Declaration
Objective-C
typedef NSString *DingiOfflinePackUserInfoKeySwift
struct DingiOfflinePackUserInfoKey : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable -
A block to be called once an offline pack has been completely created and added.
An application typically calls the
-resumemethod on the pack inside this completion handler to begin the download.Declaration
Objective-C
typedef void (^DingiOfflinePackAdditionCompletionHandler)( DingiOfflinePack *_Nullable, NSError *_Nullable)Swift
typealias DingiOfflinePackAdditionCompletionHandler = (DingiOfflinePack?, Error?) -> VoidParameters
packContains a pointer to the newly added pack, or
nilif there was an error creating or adding the pack.errorContains a pointer to an error object (if any) indicating why the pack could not be created or added.
-
A block to be called once an offline pack has been completely invalidated and removed.
Avoid any references to the pack inside this completion handler: by the time this completion handler is executed, the pack has become invalid, and any messages passed to it will raise an exception.
Declaration
Objective-C
typedef void (^DingiOfflinePackRemovalCompletionHandler)(NSError *_Nullable)Swift
typealias DingiOfflinePackRemovalCompletionHandler = (Error?) -> VoidParameters
errorContains a pointer to an error object (if any) indicating why the pack could not be invalidated or removed.
-
A block to be called once the contents of a file are copied into the current packs.
Declaration
Objective-C
typedef void (^DingiBatchedOfflinePackAdditionCompletionHandler)( NSURL *_Nonnull, NSArray<DingiOfflinePack *> *_Nullable, NSError *_Nullable)Swift
typealias DingiBatchedOfflinePackAdditionCompletionHandler = (URL, [DingiOfflinePack]?, Error?) -> VoidParameters
fileURLThe file URL of the offline database containing the offline packs that were copied.
packsAn array of all known offline packs, or
nilif there was an error creating or adding the pack.errorA pointer to an error object (if any) indicating why the pack could not be created or added.
-
Options for
DingiShapeSourceobjects.Declaration
Objective-C
typedef NSString *DingiShapeSourceOptionSwift
struct DingiShapeSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
-
Options for
DingiTileSourceobjects.Declaration
Objective-C
typedef NSString *DingiTileSourceOptionSwift
struct DingiTileSourceOption : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
-
Options for
DingiMapView.decelerationRate.Declaration
Objective-C
typedef CGFloat DingiMapViewDecelerationRateSwift
struct DingiMapViewDecelerationRate : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable -
Options for
DingiMapView.preferredFramesPerSecond.Declaration
Objective-C
typedef NSInteger DingiMapViewPreferredFramesPerSecondSwift
struct DingiMapViewPreferredFramesPerSecond : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
Other Type Definitions Reference