GMSAutocompleteViewController 類別參考資料

GMSAutocompleteViewController 類別參考資料

總覽

GMSAutocompleteViewController 提供介面,可在使用者輸入文字時更新自動完成預測表格,

使用者選取的地點會透過 GMSAutocompleteViewControllerResultsDelegate 通訊協定傳回應用程式。

如要使用 GMSAutocompleteViewController,請將委派對象設為應用程式中符合 GMSAutocompleteViewControllerDelegate 通訊協定的物件,然後顯示控制器 (例如使用 showViewController)。GMSAutocompleteViewControllerDelegate 委派方法可用於判斷使用者選取地點或已取消選取的時間。

屬性

IBOutlet ID
< GMSAutocompleteViewControllerDelegate >
委派
 委派代表選擇地點或已取消地點時接收通知。
GMSAutocompleteFilterAutocompleteFilter
 套用至自動完成建議的篩選器 (可以是空值)。
IBInspectable UIColor * tableCellBackgroundColor
 表格儲存格的背景顏色。
IBInspectable UIColor * tableCellSeparatorColor
 表格儲存格之間的分隔符顏色。
IBInspectable UIColor * 主要文字顏色
 自動完成結果中的結果名稱文字顏色。
IBInspectable UIColor * 主要文字醒目顯示顏色
 用於在自動完成結果中醒目顯示相符文字的顏色。
IBInspectable UIColor * 次要文字顏色
 自動完成結果中第二列文字的顏色。
IBInspectable UIColor * 色調
 於「自動完成」檢視中的控制項套用色調。
GMSPlaceField地點欄位
 指定要擷取物件 GMSPlace 的個別地點詳細資料。

資源說明文件

- (IBOutlet ID<GMSAutocompleteViewControllerDelegate>) 委派 [read, write, assign]

委派代表選擇地點或已取消地點時接收通知。

- (GMSAutocompleteFilter*) AutocompleteFilter [read, write, assign]

套用至自動完成建議的篩選器 (可以是空值)。

- (IBInspectable UIColor*) tableCellBackgroundColor [read, write, assign]

表格儲存格的背景顏色。

- (IBInspectable UIColor*) tableCellSeparatorColor [read, write, assign]

表格儲存格之間的分隔符顏色。

- (IBInspectable UIColor*) primaryTextColor [read, write, assign]

自動完成結果中的結果名稱文字顏色。

- (IBInspectable UIColor*) primaryTextHighlightColor [read, write, assign]

用於在自動完成結果中醒目顯示相符文字的顏色。

- (IBInspectable UIColor*) secondaryTextColor [read, write, assign]

自動完成結果中第二列文字的顏色。

- (IBInspectable UIColor*) tintColor [read, write, assign]

於「自動完成」檢視中的控制項套用色調。

- (GMSPlaceField) placeFields [read, write, assign]

指定要擷取物件 GMSPlace 的個別地點詳細資料。

如未覆寫,預設會傳回所有詳細資料。