Task

From Pointui

AVAILABLE SINCE: 2.1

Provides access to an individual task on the device. It can be used to read and write properties of the task.

Contents

Methods

void Display()

Displays the default OS application task screen for this task.

void Set(int objectID)

Sets the specific task this object is to contain. This can be called more than once to change to different tasks. After a successful call to Set(), the GetValue(), SetValue() methods can be used to get and set properties for the task whose unique id matches the supplied objectID.

void GetValue(String propertyName, String result)

void GetValue(String propertyName, int result)

void GetValue(String propertyName, DateTime result)

The GetValue method supports a few different result data types. The variable supplied in the result parameter and the propertyName must match one of the properties listed below:

propertyName Expected Data Type
DueDate DateTime
StartDate DateTime
DateCompleted DateTime
Subject String
Categories String
Notes String
Complete bool
Duration int
IsRecurring bool
ReminderSet bool
Importance int
ObjectID int


void SetValue(String propertyName, String value)

Sets a property for the task to the specified value. The propertyName must match one of those listed in the table under Task.GetValue() which has a String data type.

void Save()

Saves any changes to the task that have been performed using SetValue().