Visual Basic (Declaration) | |
---|---|
Public MustInherit Class Task Inherits ProjectExtension Implements IDynamicXmlSerializable, IJsonSerializer |
C# | |
---|---|
public abstract class Task : ProjectExtension, IDynamicXmlSerializable, IJsonSerializer |
A Task represents a workflow designed for field worker to get certain job done on the field. Conceptually, a Task consists one or more Pages, with each page either providing information to user or getting inputs from user. Once a task is completed, user will be navigated back to the SelectTaskPage.
The mobile application provides a few built-in Tasks, including ViewMapTask,
CollectFeaturesTask,
SearchFeaturesTask,
WorkListTask,
and
SynchronizeTask.
You can build your new task by inheriting Task class. A new task can be
customized to embed your business logic, while at the same time leveraging
existing functions provided in other tasks.
Note that you can also build project extension to extend existing tasks. The difference between a Task and a ProjectExtension is that a Task would be listed on SelectTaskPage, while a ProjectExtension won't. For ProjectExtension, you normally hook up your implementation to extensible points of the framework. For more details, see Extending Mobile Application By Function Area document from developer help.
The application framework provides a default icon when you create a new task. The icon will be shown next to the title and description of the task on SelectTaskPage. You can use your own icon as wished. To calculate the size needed for your Task, use CalculateIconDimensions(IconSize.Large) method provided by MobileApplication class.
If transparency is needed for your icon's background, set it to RGB (255, 0, 255).
ESRI.ArcGIS.Mobile.Client.Extension
ESRI.ArcGIS.Mobile.Client.ProjectExtension
ESRI.ArcGIS.Mobile.Client.Task
ESRI.ArcGIS.Mobile.Client.Tasks.CollectFeatures.CollectFeaturesTask
ESRI.ArcGIS.Mobile.Client.Tasks.ManageEdits.ManageEditsTask
ESRI.ArcGIS.Mobile.Client.Tasks.SearchFeatures.SearchFeaturesTask
ESRI.ArcGIS.Mobile.Client.Tasks.Status.StatusTask
ESRI.ArcGIS.Mobile.Client.Tasks.Synchronization.SynchronizeTask
ESRI.ArcGIS.Mobile.Client.Tasks.ViewMap.ViewMapTask
ESRI.ArcGIS.Mobile.Client.Tasks.WorkList.WorkListTask
Requirements
Namespace: ESRI.ArcGIS.Mobile.Client
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
Assembly: ESRI.ArcGIS.Mobile.Client (in ESRI.ArcGIS.Mobile.Client.dll)