DALILocation

public class DALILocation

A static struct that contains all location updates and queries

Example:

DALILocation.Tim.get { (tim, error) in
    // ...
    if tim.inDALI {
        // ...
    } else if tim.inOffice {
        // ...
    }
}
  • Tim

    A simple struct that holds booleans that indicate Tim’s location. Use it wisely 😉

    See more

    Declaration

    Swift

    public struct Tim
  • A simple struct that handles getting a list of shared user

    See more

    Declaration

    Swift

    public struct Shared
  • Observe members entering the lab. Will call callback everytime someone is tracked as entering the lab

    Declaration

    Swift

    public static func observeMemberEnter(callback: @escaping (_ member: DALIMember) -> Void) -> Observation

    Parameters

    callback

    Called when someone enters the lab

    member

    The member who entered the lab

  • The current user is sharing this device’s location

    Declaration

    Swift

    public static var sharing: Bool { get set }