public interface MobileResourceLocator
MobileResourceLocator
provides methods to assist with finding mobile applications.Modifier and Type | Method and Description |
---|---|
MobileResource |
findAncestorResourceByType(Resource resource,
String type,
String... stopTypes)
Traverse through parent resources to locate a type matching the type parameter.
|
MobileResource |
findClosestResourceByType(Resource resource,
String type,
String... stopTypes)
Locate the closest mobile resource matching to specified type.
|
Iterable<MobileResource> |
findResourcesByType(Resource resource,
String type)
Find all child resources matching the requested app type.
|
Iterable<MobileResource> findResourcesByType(Resource resource, String type)
resource
- The resource to start searching from.type
- Mobile resource type id. Use MobileResourceType
for common app types.MobileResource findAncestorResourceByType(Resource resource, String type, String... stopTypes)
null
will be returned. Processing will also stop if any types specified
in the stopTypes
array are found first.resource
- The resource to start searching from.type
- The mobile resource type id. Use MobileResourceType
for common app types.stopTypes
- An array of types that will stop processing.MobileResource
matching the found type.MobileResource findClosestResourceByType(Resource resource, String type, String... stopTypes)
null
will be returned
if no match is found.resource
- The resource to start searching from.type
- The mobile resource type id. Use MobileResourceType
for common app types.stopTypes
- An array of types that will stop processing.MobileResource
of the closest matching type, if any exist."Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"