You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
586 B
Java
19 lines
586 B
Java
package com.thirdweb.unity;
|
|
|
|
import android.content.Intent;
|
|
import android.net.Uri;
|
|
import android.os.Bundle;
|
|
import androidx.browser.customtabs.CustomTabsIntent;
|
|
import com.unity3d.player.UnityPlayerActivity;
|
|
|
|
public class ThirdwebAndroidPlugin
|
|
{
|
|
public static void OpenCustomTab(UnityPlayerActivity activity, String url)
|
|
{
|
|
CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder();
|
|
builder.setUrlBarHidingEnabled(true);
|
|
CustomTabsIntent customTabsIntent = builder.build();
|
|
customTabsIntent.launchUrl(activity, Uri.parse(url));
|
|
}
|
|
}
|