fetchUserHubSettings

Function

Fetch the current user's settings for ArcGIS Hub Will return null if the hubforarcgis token is not available

Parameters

Parameter Type Default Notes
context Required IArcGISContext

Returns

Promise<IUserHubSettings>
Property Type Notes
schemaVersion number
history Optional IHubHistory

Optional history of sites/content the user has visited

notices Optional {
dismissed:
string[]
}

Track notices the user has dismissed stored as an object so we can add more types in the future

preview Optional {
workspace:
boolean
}

Features that are enabled for the user in preview mode

updated Optional number
username Optional string

Function defined in common/src/utils/hubUserAppResources.ts:233