docs.unity3d.com
    显示 / 隐藏目录

    Class IUsesGeoLocationMethods

    Inheritance
    Object
    IUsesGeoLocationMethods
    Namespace: Unity.MARS
    Syntax
    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<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
    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)