Java android.content ComponentName fields, constructors, methods, implement or subclass

Example usage for Java android.content ComponentName fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.content ComponentName.

The text is from its open source code.

Constructor

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) .

Method

booleanequals(Object obj)
StringflattenToShortString()
The same as #flattenToString() , but abbreviates the class name if it is a suffix of the package.
StringflattenToString()
Return a String that unambiguously describes both the package and class names contained in the ComponentName.
ClassgetClass()
Returns the runtime class of this Object .
StringgetClassName()
Return the class name of this component.
StringgetPackageName()
Return the package name of this component.
StringgetShortClassName()
Return the class name, either fully qualified or in a shortened form (with a leading '.') if it is a suffix of the package.
StringtoShortString()
Return string representation of this class without the class's name as a prefix.
StringtoString()
ComponentNameunflattenFromString(@NonNull String str)
Recover a ComponentName from a String that was previously created with #flattenToString() .