当前位置: 首页>>代码示例>>Java>>正文


Java Vuforia.INIT_LICENSE_ERROR_NO_NETWORK_TRANSIENT属性代码示例

本文整理汇总了Java中com.vuforia.Vuforia.INIT_LICENSE_ERROR_NO_NETWORK_TRANSIENT属性的典型用法代码示例。如果您正苦于以下问题:Java Vuforia.INIT_LICENSE_ERROR_NO_NETWORK_TRANSIENT属性的具体用法?Java Vuforia.INIT_LICENSE_ERROR_NO_NETWORK_TRANSIENT怎么用?Java Vuforia.INIT_LICENSE_ERROR_NO_NETWORK_TRANSIENT使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.vuforia.Vuforia的用法示例。


在下文中一共展示了Vuforia.INIT_LICENSE_ERROR_NO_NETWORK_TRANSIENT属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getInitializationErrorString

private String getInitializationErrorString(int code)
{
    if (code == Vuforia.INIT_DEVICE_NOT_SUPPORTED)
        return "Failed to initialize Vuforia. This device is not supported.";
    if (code == Vuforia.INIT_NO_CAMERA_ACCESS)
        return "Failed to initialize Vuforia. Camera not accessible";
    if (code == Vuforia.INIT_LICENSE_ERROR_MISSING_KEY)
        return "Vuforia App key is missing. Please get a valid key, by logging into your account at developer.vuforia.com and creating a new project.";
    if (code == Vuforia.INIT_LICENSE_ERROR_INVALID_KEY)
        return "Invalid Key used. Please make sure you are using a valid Vuforia App Key.";
    if (code == Vuforia.INIT_LICENSE_ERROR_NO_NETWORK_TRANSIENT)
        return "Unable to contact server. Please try again later.";
    if (code == Vuforia.INIT_LICENSE_ERROR_NO_NETWORK_PERMANENT)
        return "No network available. Please make sure you are connected to the Internet.";
    if (code == Vuforia.INIT_LICENSE_ERROR_CANCELED_KEY)
        return "This app license key has been canceled and may no longer be used. Please get a new license key.";
    if (code == Vuforia.INIT_LICENSE_ERROR_PRODUCT_TYPE_MISMATCH)
        return "Vuforia App key is not valid for this product. Please get a valid key, by logging into your account at developer.vuforia.com and choosing the right product type during project creation.";
    else
    {
        return "Failed to initialize Vuforia.";
    }
}
 
开发者ID:mattrayner,项目名称:cordova-plugin-vuforia,代码行数:23,代码来源:ApplicationSession.java

示例2: getInitializationErrorString

private String getInitializationErrorString(int code)
{
    if (code == Vuforia.INIT_DEVICE_NOT_SUPPORTED)
        return mActivity.getString(R.string.INIT_ERROR_DEVICE_NOT_SUPPORTED);
    if (code == Vuforia.INIT_NO_CAMERA_ACCESS)
        return mActivity.getString(R.string.INIT_ERROR_NO_CAMERA_ACCESS);
    if (code == Vuforia.INIT_LICENSE_ERROR_MISSING_KEY)
        return mActivity.getString(R.string.INIT_LICENSE_ERROR_MISSING_KEY);
    if (code == Vuforia.INIT_LICENSE_ERROR_INVALID_KEY)
        return mActivity.getString(R.string.INIT_LICENSE_ERROR_INVALID_KEY);
    if (code == Vuforia.INIT_LICENSE_ERROR_NO_NETWORK_TRANSIENT)
        return mActivity.getString(R.string.INIT_LICENSE_ERROR_NO_NETWORK_TRANSIENT);
    if (code == Vuforia.INIT_LICENSE_ERROR_NO_NETWORK_PERMANENT)
        return mActivity.getString(R.string.INIT_LICENSE_ERROR_NO_NETWORK_PERMANENT);
    if (code == Vuforia.INIT_LICENSE_ERROR_CANCELED_KEY)
        return mActivity.getString(R.string.INIT_LICENSE_ERROR_CANCELED_KEY);
    if (code == Vuforia.INIT_LICENSE_ERROR_PRODUCT_TYPE_MISMATCH)
        return mActivity.getString(R.string.INIT_LICENSE_ERROR_PRODUCT_TYPE_MISMATCH);
    else
    {
        return mActivity.getString(R.string.INIT_LICENSE_ERROR_UNKNOWN_ERROR);
    }
}
 
开发者ID:daemontus,项目名称:VuforiaTransparentVideo,代码行数:23,代码来源:SampleApplicationSession.java


注:本文中的com.vuforia.Vuforia.INIT_LICENSE_ERROR_NO_NETWORK_TRANSIENT属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。