Struct Layer
Represents one layer of sourcing environment properties. A layer may know how to source any number of properties (even possibly 0 properties in edge cases), in which case it may return null for individual properties.
Inherited Members
Namespace: LaunchDarkly.Sdk.EnvReporting
Assembly: LaunchDarkly.CommonSdk.dll
Syntax
public readonly struct Layer
Constructors
Layer(ApplicationInfo?, OsInfo?, DeviceInfo?, string)
Constructs a new layer with optional property values.
Declaration
public Layer(ApplicationInfo? appInfo, OsInfo? osInfo, DeviceInfo? deviceInfo, string locale)
Parameters
Type | Name | Description |
---|---|---|
ApplicationInfo? | appInfo | the optional ApplicationInfo. |
OsInfo? | osInfo | the optional OsInfo. |
DeviceInfo? | deviceInfo | the optional DeviceInfo. |
string | locale | the optional application locale. |
Properties
ApplicationInfo
The application info.
Declaration
public ApplicationInfo? ApplicationInfo { get; }
Property Value
Type | Description |
---|---|
ApplicationInfo? |
DeviceInfo
The device info.
Declaration
public DeviceInfo? DeviceInfo { get; }
Property Value
Type | Description |
---|---|
DeviceInfo? |
Locale
The application locale in the format languagecode2-country/regioncode2.
Declaration
public string Locale { get; }
Property Value
Type | Description |
---|---|
string |
OsInfo
The operating system info.
Declaration
public OsInfo? OsInfo { get; }
Property Value
Type | Description |
---|---|
OsInfo? |