Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在原生 iOS 应用程序中使用 Filepicker.io。如何预填充“网络图像”搜索字段的搜索查询?例如,如果我知道用户正在寻找冲浪图像,我想将搜索查询设置为“冲浪”。
您可以在openTo选项中指定它:
filepicker.pick({ services:['IMAGE_SEARCH'], openTo:'/Imagesearch/surfing', mimetype:'image/*' }, function(FPFile){ console.log(JSON.stringify(FPFile)); }, function(FPError){ console.log(FPError.toString()); } );