Package com.parse
Class ManifestInfo
- java.lang.Object
-
- com.parse.ManifestInfo
-
public class ManifestInfo extends java.lang.Object
A utility class for retrieving app metadata such as the app name, default icon, whether or not the app declares the correct permissions for push, etc.
-
-
Constructor Summary
Constructors Constructor Description ManifestInfo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Bundle
getApplicationMetadata(Context context)
static java.lang.String
getDisplayName(Context context)
Returns the display name of the app used by the app launcher, as specified by the android:label attribute in theelement of the manifest. static int
getIconId()
Returns the default icon id used by this application, as specified by the android:icon attribute in theelement of the manifest. static int
getVersionCode()
Returns the version code for this app, as specified by the android:versionCode attribute in theelement of the manifest. static java.lang.String
getVersionName()
Returns the version name for this app, as specified by the android:versionName attribute in theelement of the manifest.
-
-
-
Method Detail
-
getVersionCode
public static int getVersionCode()
Returns the version code for this app, as specified by the android:versionCode attribute in theelement of the manifest.
-
getVersionName
public static java.lang.String getVersionName()
Returns the version name for this app, as specified by the android:versionName attribute in theelement of the manifest.
-
getDisplayName
public static java.lang.String getDisplayName(Context context)
Returns the display name of the app used by the app launcher, as specified by the android:label attribute in theelement of the manifest.
-
getIconId
public static int getIconId()
Returns the default icon id used by this application, as specified by the android:icon attribute in theelement of the manifest.
-
getApplicationMetadata
public static Bundle getApplicationMetadata(Context context)
- Returns:
- A
Bundle
if meta-data is specified in AndroidManifest, otherwise null.
-
-