GoogleRidesharingConsumer Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMTSRequestOptionsSupport
@protocol GMTSRequestOptionsSupport <NSObject>
Extension for support of set request options.
-
The current request options. Could be nil if was not set.
-
Generate a new request by applying the current options.
Declaration
Objective-C
- (nonnull instancetype)updatedRequestByApplyingOptions:
(nullable __kindof GMTSRequestOptions *)requestOptions;
Parameters
requestOptions
|
The request options that want to be applied with.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMTSRequestOptionsSupport\u003c/code\u003e is a protocol extension for setting request options.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003erequestOptions\u003c/code\u003e method retrieves the currently set request options, which can be nil if none are set.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eupdatedRequestByApplyingOptions:\u003c/code\u003e method generates a new request with the specified options applied.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003erequestOptions\u003c/code\u003e parameter allows you to specify the desired options to apply when updating a request.\u003c/p\u003e\n"]]],[],null,["# GoogleRidesharingConsumer Framework Reference\n\nGMTSRequestOptionsSupport\n=========================\n\n @protocol GMTSRequestOptionsSupport \u003cNSObject\u003e\n\nExtension for support of set request options.\n- `\n ``\n ``\n `\n\n ### [-requestOptions](#/c:objc(pl)GMTSRequestOptionsSupport(im)requestOptions)\n\n `\n ` \n The current request options. Could be nil if was not set. \n\n #### Declaration\n\n Swift \n\n func requestOptions() -\u003e ../Classes/GMTSRequestOptions.html?\n\n Objective-C \n\n - (nullable __kindof ../Classes/GMTSRequestOptions.html *)requestOptions;\n\n- `\n ``\n ``\n `\n\n ### [-updatedRequestByApplyingOptions:](#/c:objc(pl)GMTSRequestOptionsSupport(im)updatedRequestByApplyingOptions:)\n\n `\n ` \n Generate a new request by applying the current options. \n\n #### Declaration\n\n Swift \n\n func updatedRequest(byApplying requestOptions: ../Classes/GMTSRequestOptions.html?) -\u003e Self\n\n Objective-C \n\n - (nonnull instancetype)updatedRequestByApplyingOptions:\n (nullable __kindof ../Classes/GMTSRequestOptions.html *)requestOptions;\n\n #### Parameters\n\n |------------------------|---------------------------------------------------|\n | ` `*requestOptions*` ` | The request options that want to be applied with. |"]]