public interface MobileResourceLocator
MobileResourceLocator provides methods to assist with finding mobile applications.| Modifier and Type | Method and Description |
|---|---|
MobileResource |
findAncestorResourceByType(Resource resource,
java.lang.String type,
java.lang.String... stopTypes)
Traverse through parent resources to locate a type matching the type parameter.
|
MobileResource |
findClosestResourceByType(Resource resource,
java.lang.String type,
java.lang.String... stopTypes)
Locate the closest mobile resource matching to specified type.
|
java.lang.Iterable<MobileResource> |
findResourcesByType(Resource resource,
java.lang.String type)
Find all child resources matching the requested app type.
|
MobileResource |
getResourceByType(Resource resource,
java.lang.String type,
boolean deep)
Traverse over child resources to locate a resource matching the requested app type.
|
java.lang.Iterable<MobileResource> findResourcesByType(Resource resource, java.lang.String type)
resource - Resource The resource to start searching from.type - Mobile resource type id. Use MobileResourceType for common app types.MobileResource getResourceByType(Resource resource, java.lang.String type, boolean deep)
resource - Resource The resource to start iterating fromtype - Mobile resource type id. Use MobileResourceType for common app types.deep - If true the child resources will be also analyzedMobileResource findAncestorResourceByType(Resource resource, java.lang.String type, java.lang.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, java.lang.String type, java.lang.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 © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"