Shared
public struct Shared
A simple struct that handles getting a list of shared user
-
Get a list of all the people in the lab who are sharing their location
Declaration
Swift
public static func get(callback: @escaping ([DALIMember]?, DALIError.General?) -> Void)
Parameters
callback
Function called apon completion
-
Observe the shared locations
Declaration
Swift
public static func observe(callback: @escaping (_ members: [DALIMember]?, _ error: DALIError.General?) -> Void) -> Observation
Parameters
callback
The function called when an update is available
members
The update members listed in the lab
error
The error, if any, encountered
-
Submit the current location of the user
Important
Do not run this on an API authenticated program. It will fatal error to protect the server!
Declaration
Swift
public static func submit(inDALI: Bool, entering: Bool, callback: @escaping (Bool, DALIError.General?) -> Void)
Parameters
inDALI
The user is in DALI
entering
The user is entering DALI
callback
Function that is called when done