docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class IUsesGeoLocationMethods

    Inheritance
    object
    IUsesGeoLocationMethods
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.MARS.Providers
    Assembly: Unity.MARS.Interfaces.dll
    Syntax
    [MovedFrom("Unity.MARS")]
    public static class IUsesGeoLocationMethods

    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<bool>

    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
    bool

    TryStartService()

    Declaration
    public static bool TryStartService()
    Returns
    Type Description
    bool

    UnsubscribeGeoLocationChanged(IUsesGeoLocation, Action<GeographicCoordinate>)

    Declaration
    public static void UnsubscribeGeoLocationChanged(this IUsesGeoLocation obj, Action<GeographicCoordinate> onChangeAction)
    Parameters
    Type Name Description
    IUsesGeoLocation obj
    Action<GeographicCoordinate> onChangeAction
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)