public class FractionManager extends Object
Fraction.SystemCapability.Aafwk#ABILITY| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Optional<Fraction> |
getFractionByTag(String tag) |
Obtains a
Fraction instance associated with the ability based on the specified tag. |
void |
popFromStack() |
Removes the
Fraction instance from the stack and returns the execution result. |
void |
popFromStack(String tag,
int flags) |
Removes particular
Fraction instances based on the specified tag from the stack. |
FractionScheduler |
startFractionScheduler() |
Starts a
Fraction transaction. |
public FractionScheduler startFractionScheduler()
Fraction transaction.
A Fraction transaction can be operations such as add, remove, hide, show, and replace.
FractionScheduler instance used to perform the Fraction transaction.public void popFromStack()
Fraction instance from the stack and returns the execution result.
This method removes the Fraction instance located at the top of the stack and
then displays the next Fraction instance in the stack.
public void popFromStack(String tag, int flags)
Fraction instances based on the specified tag from the stack.
If flag is 0, this method removes all Fraction instances located
above the instance with the given tag. If flag is 1,
this method removes the Fraction instance with the given tag and all instances
located above it from the stack.
This method removes specified Fraction instances from the top of the stack and
then displays the next Fraction instance in the stack.
tag - Indicates the name of the Fraction instance used to determine which instances to remove.flags - Specifies whether to remove the Fraction instance with the given tag.public Optional<Fraction> getFractionByTag(String tag)
Fraction instance associated with the ability based on the specified tag.tag - Indicates the name of the Fraction instance to obtain.Fraction instance with the specified tag if found; returns null otherwise.