Example usage for Java android.content ComponentName fields, constructors, methods, implement or subclass
The text is from its open source code.
ComponentName(@NonNull String pkg, @NonNull String cls) Create a new component identifier. | |
ComponentName(@NonNull Context pkg, @NonNull String cls) Create a new component identifier from a Context and class name. | |
ComponentName(@NonNull Context pkg, @NonNull Class> cls) Create a new component identifier from a Context and Class object. | |
ComponentName(String pkg, Parcel in) | |
ComponentName(Parcel in) Instantiate a new ComponentName from the data in a Parcel that was previously written with #writeToParcel(Parcel,int) . |
boolean | equals(Object obj) |
String | flattenToShortString() The same as #flattenToString() , but abbreviates the class name if it is a suffix of the package. |
String | flattenToString() Return a String that unambiguously describes both the package and class names contained in the ComponentName. |
Class> | getClass() Returns the runtime class of this Object . |
String | getClassName() Return the class name of this component. |
String | getPackageName() Return the package name of this component. |
String | getShortClassName() Return the class name, either fully qualified or in a shortened form (with a leading '.') if it is a suffix of the package. |
String | toShortString() Return string representation of this class without the class's name as a prefix. |
String | toString() |
ComponentName | unflattenFromString(@NonNull String str) Recover a ComponentName from a String that was previously created with #flattenToString() . |