Freigeben über


Class TokenRequiredDelegate

Declaration

struct winrt::Microsoft::Azure::SpatialAnchors::TokenRequiredDelegate

Description

Informs the application that a session requires an updated access token or authentication token.

Applications use this type when registering events.

For more information, see How to handle events using delegates in C++/WinRT.

Constructors

TokenRequiredDelegate(std::nullptr_t = nullptr) noexcept;
template<typename L> TokenRequiredDelegate(L lambda);
template<typename F> TokenRequiredDelegate(F* function);
template<typename O, typename M> TokenRequiredDelegate(O* object, M method);

Methods

void operator()(winrt::Windows::Foundation::IInspectable const& sender, winrt::Microsoft::Azure::SpatialAnchors::TokenRequiredEventArgs const& args) const;

Parameters

  • sender - The session that requires an updated access token or authentication token.
  • args - The event arguments that require an AccessToken property or an AuthenticationToken property to be set.