Show a Developer's Apps on Myket
To display all apps published by a developer on Myket, use this URI. Replace APP_PACKAGE_NAME with the package name of one of that developer's apps:
myket://developer/APP_PACKAGE_NAME
The examples below open the list of apps published by Taghcheh.
Example
- Java
- Kotlin
- Unity
String url = "myket://developer/ir.mservices.mybook";
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(intent);
val url = "myket://developer/ir.mservices.mybook"
val intent = Intent(Intent.ACTION_VIEW, Uri.parse(url))
startActivity(intent)
using UnityEngine;
public class MyketIntentExample : MonoBehaviour
{
public void OpenDeveloperApps()
{
#if UNITY_ANDROID && !UNITY_EDITOR
OpenMyketIntent("myket://developer/ir.mservices.mybook");
#endif
}
private static void OpenMyketIntent(string url)
{
using (var intentClass = new AndroidJavaClass("android.content.Intent"))
using (var uriClass = new AndroidJavaClass("android.net.Uri"))
using (var uri = uriClass.CallStatic<AndroidJavaObject>("parse", url))
using (var intent = new AndroidJavaObject(
"android.content.Intent",
intentClass.GetStatic<string>("ACTION_VIEW"),
uri))
using (var unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"))
using (var activity = unityPlayer.GetStatic<AndroidJavaObject>("currentActivity"))
{
activity.Call("startActivity", intent);
}
}
}
If the package name is invalid, Myket displays a "The requested app could not be found" message.