AI-generated Key Takeaways
-
GMTSRequestOptionsSupportis a protocol extension for setting request options. -
The
requestOptionsmethod retrieves the currently set request options, which can be nil if none are set. -
The
updatedRequestByApplyingOptions:method generates a new request with the specified options applied. -
requestOptionsparameter allows you to specify the desired options to apply when updating a request.
GMTSRequestOptionsSupport
@protocol GMTSRequestOptionsSupport <NSObject>Extension for support of set request options.
-
The current request options. Could be nil if was not set.
Declaration
Swift
func requestOptions() -> GMTSRequestOptions?Objective-C
- (nullable __kindof GMTSRequestOptions *)requestOptions; -
Generate a new request by applying the current options.
Declaration
Swift
func updatedRequest(byApplying requestOptions: GMTSRequestOptions?) -> SelfObjective-C
- (nonnull instancetype)updatedRequestByApplyingOptions: (nullable __kindof GMTSRequestOptions *)requestOptions;Parameters
requestOptionsThe request options that want to be applied with.