Criteria for retrieving information about applications

The criteria object specifies what information is returned about applications on the mobile device.

The criteria object has two main properties: Type and Filter. These are described in the following table. Properties enclosed in brackets are optional.

Table: Criteria object properties

Property

Description

Type

Value

criteria.Type

Specifies the type of application:

  • "UserInstalledPackage" retrieves information about user-installed applications only. User-installed applications include either the application and the supporting DLL or the DLLs only.

  • "Application" retrieves information about all applications on the mobile device, regardless of whether they were preinstalled or installed by the user.

string

Possible values:

  • "UserInstalledPackage"

  • "Application"

[criteria.Filter]

Specifies the criteria to use in determining which applications to retrieve information about.

This property is valid only if criteria.Type has value "Application"; it is ignored for "UserInstalledPackage".

If not specified for "Application", information about all applications on the mobile device is retrieved.

object

Object with the properties specified below

[criteria.Filter.DocumentPath]

Specifies the full path and file of a document.

AppManager determines what applications to get information about from the document name.

If both DocumentPath and MIMEType are specified, DocumentPath takes precedence.

string

For example: "c:\\data\\abcd.txt"

[criteria.Filter.MIMEType]

Specifies a MIME type for the applications to get information about.

If both DocumentPath and MIMEType are specified, DocumentPath takes precedence.

string

For example: "image/jpeg"