FeatureFlag

Represents a single feature-flag / experiment marker within Bugsnag. Each FeatureFlag object has a name and an optional variant which can be used to identify runtime experiments and groups when reporting errors.

See also

Constructors

Link copied to clipboard
constructor(@NonNull name: String)
Create a named FeatureFlag with no variant
constructor(@NonNull name: String, @Nullable variant: String)
Create a new FeatureFlag with a name and (optionally) a variant.
constructor(@NonNull mapEntry: Map.Entry<String, String>)
Create a new FeatureFlag based on an existing Map.Entry.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun <K : Comparable<out Any>?, V> comparingByKey(): Comparator<Map.Entry<K, V>>
Link copied to clipboard
Link copied to clipboard
open fun equals(other: Any): Boolean
Link copied to clipboard
open fun getKey(): String
Same as getName.
Link copied to clipboard
Same as getVariant.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun setValue(@Nullable value: String): String
Throws UnsupportedOperationException as FeatureFlag is considered immutable.
Link copied to clipboard
open fun toString(): String