@farmart-tech/brave-feature-core
Preparing search index...
IFeatureClass
Interface IFeatureClass
Interface for the Feature class.
interface
IFeatureClass
{
evalateConditions
()
:
Promise
<
{
failedCondition
?:
FeatureCondition
;
passedConditions
?:
FeatureCondition
[]
;
success
:
boolean
;
}
,
>
;
evaluateInPlayground
(
options
:
{
cleanupLocalFeatureCache
:
boolean
}
,
)
:
Promise
<
FeatureEvaluationResult
>
;
evaluateWithDetails
()
:
Promise
<
FeatureEvaluationResult
>
;
getIsDeviceLevelEnabled
()
:
boolean
|
null
;
getIsEnabled
()
:
Promise
<
boolean
>
;
getIsGlobal
()
:
boolean
;
getIsReleaseDatePassed
()
:
boolean
;
getRaw
()
:
FeatureData
;
getRolloutEvaluation
(
isBaselineRollout
:
boolean
,
)
:
Promise
<
{
isEnabled
:
boolean
;
reason
:
string
;
rolloutApplied
?:
{
evaluatedValue
?:
number
;
matchedStep
?:
{
date
:
string
;
percentage
:
number
}
;
type
:
"percentage"
|
"step"
|
null
;
value
:
number
;
}
;
}
,
>
;
updateDeviceContext
(
deviceContext
:
Partial
<
DeviceContext
>
)
:
void
;
updateUserContext
(
userContext
:
Partial
<
UserContext
>
)
:
void
;
}
Implemented by
Feature
Index
Methods
evalate
Conditions
evaluate
In
Playground
evaluate
With
Details
get
Is
Device
Level
Enabled
get
Is
Enabled
get
Is
Global
get
Is
Release
Date
Passed
get
Raw
get
Rollout
Evaluation
update
Device
Context
update
User
Context
Methods
evalate
Conditions
evalateConditions
()
:
Promise
<
{
failedCondition
?:
FeatureCondition
;
passedConditions
?:
FeatureCondition
[]
;
success
:
boolean
;
}
,
>
Returns
Promise
<
{
failedCondition
?:
FeatureCondition
;
passedConditions
?:
FeatureCondition
[]
;
success
:
boolean
;
}
,
>
evaluate
In
Playground
evaluateInPlayground
(
options
:
{
cleanupLocalFeatureCache
:
boolean
}
,
)
:
Promise
<
FeatureEvaluationResult
>
Parameters
options
:
{
cleanupLocalFeatureCache
:
boolean
}
Returns
Promise
<
FeatureEvaluationResult
>
evaluate
With
Details
evaluateWithDetails
()
:
Promise
<
FeatureEvaluationResult
>
Returns
Promise
<
FeatureEvaluationResult
>
get
Is
Device
Level
Enabled
getIsDeviceLevelEnabled
()
:
boolean
|
null
Returns
boolean
|
null
get
Is
Enabled
getIsEnabled
()
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
get
Is
Global
getIsGlobal
()
:
boolean
Returns
boolean
get
Is
Release
Date
Passed
getIsReleaseDatePassed
()
:
boolean
Returns
boolean
get
Raw
getRaw
()
:
FeatureData
Returns
FeatureData
get
Rollout
Evaluation
getRolloutEvaluation
(
isBaselineRollout
:
boolean
,
)
:
Promise
<
{
isEnabled
:
boolean
;
reason
:
string
;
rolloutApplied
?:
{
evaluatedValue
?:
number
;
matchedStep
?:
{
date
:
string
;
percentage
:
number
}
;
type
:
"percentage"
|
"step"
|
null
;
value
:
number
;
}
;
}
,
>
Parameters
isBaselineRollout
:
boolean
Returns
Promise
<
{
isEnabled
:
boolean
;
reason
:
string
;
rolloutApplied
?:
{
evaluatedValue
?:
number
;
matchedStep
?:
{
date
:
string
;
percentage
:
number
}
;
type
:
"percentage"
|
"step"
|
null
;
value
:
number
;
}
;
}
,
>
update
Device
Context
updateDeviceContext
(
deviceContext
:
Partial
<
DeviceContext
>
)
:
void
Parameters
deviceContext
:
Partial
<
DeviceContext
>
Returns
void
update
User
Context
updateUserContext
(
userContext
:
Partial
<
UserContext
>
)
:
void
Parameters
userContext
:
Partial
<
UserContext
>
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
evalate
Conditions
evaluate
In
Playground
evaluate
With
Details
get
Is
Device
Level
Enabled
get
Is
Enabled
get
Is
Global
get
Is
Release
Date
Passed
get
Raw
get
Rollout
Evaluation
update
Device
Context
update
User
Context
@farmart-tech/brave-feature-core
Loading...
Interface for the Feature class.