public class FreeformWorkspaceLayoutAlgorithm extends Object
Constructor and Description |
---|
FreeformWorkspaceLayoutAlgorithm(Context context) |
Modifier and Type | Method and Description |
---|---|
TaskViewTransform |
getTransform(Task task,
TaskViewTransform transformOut,
TaskStackLayoutAlgorithm stackLayout)
Returns the transform for the given task.
|
boolean |
isTransformAvailable(Task task,
TaskStackLayoutAlgorithm stackLayout)
Returns whether the transform is available for the given task.
|
void |
reloadOnConfigurationChange(Context context)
Reloads the layout for the current configuration.
|
void |
update(List<Task> freeformTasks,
TaskStackLayoutAlgorithm stackLayout)
Updates the layout for each of the freeform workspace tasks.
|
public FreeformWorkspaceLayoutAlgorithm(Context context)
public void reloadOnConfigurationChange(Context context)
public void update(List<Task> freeformTasks, TaskStackLayoutAlgorithm stackLayout)
public boolean isTransformAvailable(Task task, TaskStackLayoutAlgorithm stackLayout)
public TaskViewTransform getTransform(Task task, TaskViewTransform transformOut, TaskStackLayoutAlgorithm stackLayout)