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
callbackFunction called apon completion
-
Observe the shared locations
Declaration
Swift
public static func observe(callback: @escaping (_ members: [DALIMember]?, _ error: DALIError.General?) -> Void) -> ObservationParameters
callbackThe function called when an update is available
membersThe update members listed in the lab
errorThe 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
inDALIThe user is in DALI
enteringThe user is entering DALI
callbackFunction that is called when done
View on GitHub
Shared Structure Reference