docs.unity3d.com
    Show / Hide Table of Contents

    Class IUsesGeoLocationMethods

    Inheritance
    Object
    IUsesGeoLocationMethods
    Namespace: Unity.MARS.Providers
    Syntax
    public static class IUsesGeoLocationMethods : object

    Properties

    SubscribeGeoLocationChangedAction

    Declaration
    public static Action<Action<GeographicCoordinate>> SubscribeGeoLocationChangedAction { set; }
    Property Value
    Type Description
    Action<Action<GeographicCoordinate>>

    TryGetGeoLocationAction

    Declaration
    public static IUsesGeoLocationMethods.TryGetGeoLocationDelegate TryGetGeoLocationAction { set; }
    Property Value
    Type Description
    IUsesGeoLocationMethods.TryGetGeoLocationDelegate

    TryStartServiceFunction

    Declaration
    public static Func<bool> TryStartServiceFunction { set; }
    Property Value
    Type Description
    Func<Boolean>

    UnsubscribeGeoLocationChangedAction

    Declaration
    public static Action<Action<GeographicCoordinate>> UnsubscribeGeoLocationChangedAction { set; }
    Property Value
    Type Description
    Action<Action<GeographicCoordinate>>

    Methods

    SubscribeGeoLocationChanged(IUsesGeoLocation, Action<GeographicCoordinate>)

    Declaration
    public static void SubscribeGeoLocationChanged(this IUsesGeoLocation obj, Action<GeographicCoordinate> onChangeAction)
    Parameters
    Type Name Description
    IUsesGeoLocation obj
    Action<GeographicCoordinate> onChangeAction

    TryGetGeoLocation(IUsesGeoLocation, out GeographicCoordinate)

    Declaration
    public static bool TryGetGeoLocation(this IUsesGeoLocation obj, out GeographicCoordinate coordinate)
    Parameters
    Type Name Description
    IUsesGeoLocation obj
    GeographicCoordinate coordinate
    Returns
    Type Description
    Boolean

    TryStartService()

    Declaration
    public static bool TryStartService()
    Returns
    Type Description
    Boolean

    UnsubscribeGeoLocationChanged(IUsesGeoLocation, Action<GeographicCoordinate>)

    Declaration
    public static void UnsubscribeGeoLocationChanged(this IUsesGeoLocation obj, Action<GeographicCoordinate> onChangeAction)
    Parameters
    Type Name Description
    IUsesGeoLocation obj
    Action<GeographicCoordinate> onChangeAction
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023