public class Intent extends Object implements ContextItem, Comparable<Intent>
AndroidEntryPointManager
,
IntentContextSelector
,
IntentContextInterpreter
Modifier and Type | Class and Description |
---|---|
static class |
Intent.IntentType |
ContextItem.Value<T>
Modifier and Type | Field and Description |
---|---|
static ContextKey |
INTENT_KEY
Key into the Context that represents the Intent.
|
static Atom |
UNBOUND |
Atom |
uri |
Constructor and Description |
---|
Intent() |
Intent(Atom action) |
Intent(Atom action,
Atom uri) |
Intent(String action) |
Intent(TypeName action) |
Intent(TypeName action,
Atom uri) |
Modifier and Type | Method and Description |
---|---|
Intent |
clone() |
int |
compareTo(Intent other) |
boolean |
equalAction(Intent other)
Does not consider the associated URI.
|
boolean |
equals(Object o)
Intents are equal to Intents with other type.
|
Atom |
getAction() |
AndroidComponent |
getComponent()
Return the type of Component associated with this Intent.
|
Intent.IntentType |
getType() |
int |
hashCode()
CLASHES: Does not consider intent-type.
|
boolean |
isExplicit() |
boolean |
isExternal(boolean strict)
Has the target to be resolved by an external App.
|
boolean |
isInternal(boolean strict)
Is the Intents target internally resolvable.
|
boolean |
isStandard(boolean strict)
Is the Intent one of the System-Defined ones.
|
Intent |
resolve() |
void |
setAction(Atom action)
Set the target of the intent.
|
void |
setActionExplicit(Atom action)
Set the explicit target of the intent.
|
void |
setExplicit() |
void |
setImmutable() |
String |
toString() |
void |
unbind() |
public static final ContextKey INTENT_KEY
public static final Atom UNBOUND
public Atom uri
public Intent()
public Intent(String action)
public Intent(Atom action)
public Intent(TypeName action)
public void setExplicit()
public boolean isExplicit()
public void setImmutable()
public void setActionExplicit(Atom action)
public void unbind()
public void setAction(Atom action)
public Atom getAction()
public Intent.IntentType getType()
public AndroidComponent getComponent()
public boolean isInternal(boolean strict)
strict
- if false return unknown target as internalpublic boolean isExternal(boolean strict)
strict
- if false return unknown target as externalpublic boolean isStandard(boolean strict)
strict
- if false return unknown target as standardpublic int hashCode()
public boolean equalAction(Intent other)
public boolean equals(Object o)
public Intent resolve()
public int compareTo(Intent other)
compareTo
in interface Comparable<Intent>