NOTICE: Google Maps Platform gaming services is deprecated as of October 18, 2021. Current users will have continued access until December 31, 2022. During this time, we will continue to provide support and fixes to major bugs and outages. See the Gaming Services Transition Guide for resources to help you plan the next steps for your projects.

Google.Maps.APIKeyResolver.ResourceAPIKeyReader

Returns an API key stored in a TextAsset resource.

Summary

Inheritance

Inherits from: Google.Maps.APIKeyResolver.IAPIKeyReader

Constructors and Destructors

ResourceAPIKeyReader(string path)
Constructor.

Public functions

TryGetAPIKey(out string apiKey)
bool
Try to return an API key.
Parameters
apiKey
Set to the API key, if it exists.
Returns
True if apiKey has been set to the API key found.

Public functions

ResourceAPIKeyReader

 ResourceAPIKeyReader(
  string path
)

Constructor.

Details
Parameters
path
The path to the resource.

TryGetAPIKey

bool TryGetAPIKey(
  out string apiKey
)

Try to return an API key. Parameters

apiKey
Set to the API key, if it exists.
Returns
True if apiKey has been set to the API key found.