SitesManager
class SitesManager
Manager for site operations
Functions
Link copied to clipboard
Check if on site. This method will return the closest site and if the current device location is on site. Note this will return an error if the app does not have location permissions.
Link copied to clipboard
fun fetch(region: CircularRegion, options: SiteOptions?, callback: (List<Site>?, Pagination?, SdkError?) -> Unit)
Fetch sites for a given region.
fun fetch(query: String? = null, page: Int? = null, operationalStatus: String = DEFAULT_OPERATIONAL_STATUS, callback: (List<Site>?, Pagination?, SdkError?) -> Unit? = null)
Fetch sites for the app.
Link copied to clipboard
fun fetchByPartnerIdentifier(partnerIdentifier: String, options: SiteOptions?, callback: (Site?, SdkError?) -> Unit)
Fetch site by partner identifier.
Link copied to clipboard
fun fetchNear(place: Place, radius: Float, options: SiteOptions?, callback: (List<Site>?, Pagination?, SdkError?) -> Unit)
Fetch sites near a place Place. Call PlacesManager.suggest to get a list of place suggestions then call this method to get nearby sites. This method is an alternative to calling PlacesManager.retrieve and fetch for a given region.
Link copied to clipboard
fun fetchNearby(radius: Float = SdkGlobals.sdkConfig.nearbySitesDefaultSearchRadius, options: SiteOptions?, callback: (List<Site>?, Pagination?, SdkError?) -> Unit)
Fetch sites near the current location. Note this will return an error if the app does not have location permissions.