WatchFacePushManager.AddException

public static class WatchFacePushManager.AddException
extends RuntimeException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.google.wear.services.watchfaces.watchfacepush.WatchFacePushManager.AddException


Exception representing an error of the WatchFacePushManager.addWatchFace method.

Summary

Fields

public static final int ADD_INVALID_CONTENT_ERROR

The provided file is not a valid Android APK.

public static final int ADD_INVALID_PACKAGE_NAME_ERROR

The watch face package name is invalid.

public static final int ADD_INVALID_VALIDATION_TOKEN_ERROR

The validation token is invalid.

public static final int ADD_SECURITY_ERROR

Security exception when attempting to install an APK.

public static final int ADD_SLOT_LIMIT_REACHED_ERROR

The watch face slot limit has been reached.

public static final int ADD_UNKNOWN_ERROR

Unknown error while adding a watch face.

Public constructors

AddException(int errorCode)
AddException(Throwable cause)

Public methods

int getErrorCode()

Inherited methods

Fields

ADD_INVALID_CONTENT_ERROR

Added in API level 36
public static final int ADD_INVALID_CONTENT_ERROR

The provided file is not a valid Android APK.

ADD_INVALID_PACKAGE_NAME_ERROR

Added in API level 36
public static final int ADD_INVALID_PACKAGE_NAME_ERROR

The watch face package name is invalid. See WatchFacePushManager.addWatchFace for the required package name structure.

ADD_INVALID_VALIDATION_TOKEN_ERROR

Added in API level 36
public static final int ADD_INVALID_VALIDATION_TOKEN_ERROR

The validation token is invalid.

ADD_SECURITY_ERROR

Added in API level 36
public static final int ADD_SECURITY_ERROR

Security exception when attempting to install an APK.

Note: The APK must be a DWF watchface which only contains a declarative XML file for the watchface layout and other resource files. The APK can't contain any executable code.

ADD_SLOT_LIMIT_REACHED_ERROR

Added in API level 36
public static final int ADD_SLOT_LIMIT_REACHED_ERROR

The watch face slot limit has been reached.

ADD_UNKNOWN_ERROR

Added in API level 36
public static final int ADD_UNKNOWN_ERROR

Unknown error while adding a watch face.

Public constructors

AddException

Added in API level 36
public AddException (int errorCode)

Parameters
errorCode int: Value is one of the following:

AddException

Added in API level 36
public AddException (Throwable cause)

Parameters
cause Throwable

Public methods