AutocompleteRequest
struct AutocompleteRequestextension AutocompleteRequest : SendableThe request for autocomplete suggestions based on a given partial query along with additional configuring properties.
-
The
AutocompleteFilterto apply to the results.Declaration
Swift
var filter: AutocompleteFilter? { get } -
Request object to use with
PlacesClientto fetch autocomplete suggestions.Declaration
Swift
init(query: String, sessionToken: AutocompleteSessionToken? = nil, filter: AutocompleteFilter? = nil, inputOffset: Int = 0)Parameters
queryThe partial text to autocomplete.
sessionTokenThe
AutocompleteSessionTokento associate requests to a billing session.filterThe
AutocompleteFilterto apply to the results.inputOffsetThe character offset for the input string. Indicates the completion starting position.
-
The character offset for the input string. Indicates the completion starting position.
Declaration
Swift
var inputOffset: Int { get } -
The partial text to autocomplete.
Declaration
Swift
var query: String { get } -
The
AutocompleteSessionTokento associate requests to a billing session.Declaration
Swift
var sessionToken: AutocompleteSessionToken? { get }