AI-generated Key Takeaways
-
GMTSRequestOptionsSupport
is a protocol extension for setting request options. -
The
requestOptions
method 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. -
requestOptions
parameter 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?) -> Self
Objective-C
- (nonnull instancetype)updatedRequestByApplyingOptions: (nullable __kindof GMTSRequestOptions *)requestOptions;
Parameters
requestOptions
The request options that want to be applied with.