脚本宝典收集整理的这篇文章主要介绍了Uber 优步叫车插件 - 正式发布!,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
几周前,我们发布了一个基于国内众多开发人员的反馈而设计出来的 HTML5 叫车插件。现在有关此插件的技术文档也已经发布到 Uber 开发者网站上了。从此开发者只需短短几行代码,即可让用户在其应用里直接打车,无需跳转到其他应用。
RideRequestButton rideRequestButton = new RideRequestButton(context);
rideRequestButton.setRequestBehavior(new RideRequestActivITyBehavior(this, 1234));
layout.addView(rideRequestButton);
<LinearLayout
>"http://schemas.andROId.COM/apk/res/android"
>"http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.uber.sdk.android.rides.RideRequestButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
uber:style="black"/>
</LinearLayout>
以上是脚本宝典为你收集整理的Uber 优步叫车插件 - 正式发布!全部内容,希望文章能够帮你解决Uber 优步叫车插件 - 正式发布!所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。