EnvironmentMetadata

public class EnvironmentMetadata

Metadata about the environment that flag evaluations or other functionalities are being performed in.

This class provides context information to plugins about the environment they are running in, including application information, SDK metadata, and authentication credentials.

  • Application information for the application this SDK is used in.

    Declaration

    Swift

    public let applicationInfo: ApplicationInfo?
  • SDK metadata for the LaunchDarkly SDK.

    Declaration

    Swift

    public let sdkMetadata: SdkMetadata
  • Credential for authentication to LaunchDarkly endpoints for this environment.

    Declaration

    Swift

    public let credential: String
  • Initialize environment metadata.

    Declaration

    Swift

    public init(applicationInfo: ApplicationInfo?, sdkMetadata: SdkMetadata, credential: String)

    Parameters

    applicationInfo

    Application information for the application this SDK is used in

    sdkMetadata

    SDK metadata for the LaunchDarkly SDK

    credential

    Credential for authentication to LaunchDarkly endpoints for this environment