Open
Description
Hi,
will be great to introduce API that allows to compose deeplink with parameters programmatically...
- compose deeplink (pseudo code):
return Uri.parse(MainActivity.DEEPLINK_SHOW_ON_MAP)
.buildUpon()
.clearQuery()
.appendQueryParameter("lat", String.valueOf(latLng.latitude))
.appendQueryParameter("lon", String.valueOf(latLng.longitude))
.build();
- trigger deeplink:
/** Trigger deeplink resolving over the deep link handler activity. */
@MainThread
public static boolean trigger(@NonNull final Context context, @NonNull final Uri deeplink) {
final Intent intentLink = new Intent(context, DeepLinkingActivity.class)
.setData(deeplink);
context.startActivity(intentLink);
return true;
}