public abstract class IAResourceManager extends Object
Constructor and Description |
---|
IAResourceManager() |
Modifier and Type | Method and Description |
---|---|
static IAResourceManager |
create(android.content.Context context)
Constructs a new
IAResourceManager . |
static IAResourceManager |
create(android.content.Context context,
android.os.Bundle extras)
Constructs a new
IAResourceManager . |
abstract IATask<IAFloorPlan> |
fetchFloorPlanWithId(String floorPlanId)
Returns a task which will load
IAFloorPlan object for given floorPlanId . |
public static IAResourceManager create(android.content.Context context)
IAResourceManager
. IndoorAtlas SDK credentials must be set
AndroidManifest.xml
.IllegalStateException
- if SDK credentials are not properly configuredpublic static IAResourceManager create(android.content.Context context, android.os.Bundle extras)
IAResourceManager
. You may pass API credentials via extras
.
Use IALocationManager.EXTRA_API_KEY
and
IALocationManager.EXTRA_API_SECRET
as keys.IllegalStateException
- if SDK credentials are not properly configuredpublic abstract IATask<IAFloorPlan> fetchFloorPlanWithId(String floorPlanId)
Returns a task which will load IAFloorPlan
object for given floorPlanId
.
Note that the result data object (IAResult
IAResult.getResult()
) of the
returned IATask
may be null
even though
IAResult
IAResult.isSuccess()
returns true
. This can happen if you are
requesting IAFloorPlan
that is private and belongs to another account.
floorPlanId
- IAFloorPlan
with given
floorPlanId