MBMResourceRequest
@interface MBMResourceRequest : NSObject
The ResourceRequest
event allows the application to observe resource requests made by a map
or map snapshotter
object.
-
Unavailable
Undocumented
Declaration
Objective-C
- (nonnull instancetype)init NS_UNAVAILABLE;
-
Unavailable
Undocumented
Declaration
Objective-C
+ (nonnull instancetype)new NS_UNAVAILABLE;
-
Undocumented
Declaration
Objective-C
- (nonnull instancetype)initWithSource:(MBMRequestDataSourceType)source request:(nonnull MBMRequestInfo *)request response:(nullable MBMResponseInfo *)response cancelled:(BOOL)cancelled timeInterval:(nonnull MBMEventTimeInterval *)timeInterval;
Swift
init(source: RequestDataSourceType, request: MBMRequestInfo, response: MBMResponseInfo?, cancelled: Bool, timeInterval: MBMEventTimeInterval)
-
The type of data source from which the resource is requested.
Declaration
Objective-C
@property (nonatomic, readonly) MBMRequestDataSourceType source;
Swift
var source: RequestDataSourceType { get }
-
The structure describes information about the resource request.
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) MBMRequestInfo *request;
Swift
var request: MBMRequestInfo { get }
-
The structure describes information about the response to the resource request.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) MBMResponseInfo *response;
Swift
var response: MBMResponseInfo? { get }
-
The property indicates whether the request was canceled. For instance, the
map
requests a tile, and the location quickly changes so that the requested tile is no longer needed.Declaration
Objective-C
@property (nonatomic, readonly) BOOL cancelled;
Swift
var cancelled: Bool { get }
-
The timestamps of the resource request event. The
timeInterval.begin
is when the resource request is made, and thetimeInterval.end
is when the request is completed.Declaration
Objective-C
@property (nonatomic, readonly, nonnull) MBMEventTimeInterval *timeInterval;
Swift
var timeInterval: MBMEventTimeInterval { get }