@launchdarkly/react-native-client-sdk - v10.23.2
Preparing search index...
FlagManager
Interface FlagManager
interface
FlagManager
{
applyChanges
(
context
:
Context
,
updates
:
{
[
key
:
string
]:
ItemDescriptor
}
,
type
:
PayloadType
,
)
:
Promise
<
void
>
;
get
(
key
:
string
)
:
ItemDescriptor
|
undefined
;
getAll
()
:
{
[
key
:
string
]:
ItemDescriptor
}
;
getDebugOverride
?
()
:
LDDebugOverride
;
init
(
context
:
Context
,
newFlags
:
{
[
key
:
string
]:
ItemDescriptor
}
,
)
:
Promise
<
void
>
;
loadCached
(
context
:
Context
)
:
Promise
<
boolean
>
;
off
(
callback
:
FlagsChangeCallback
)
:
void
;
on
(
callback
:
FlagsChangeCallback
)
:
void
;
presetFlags
(
newFlags
:
{
[
key
:
string
]:
ItemDescriptor
}
)
:
void
;
setBootstrap
(
context
:
Context
,
newFlags
:
{
[
key
:
string
]:
ItemDescriptor
}
,
)
:
void
;
upsert
(
context
:
Context
,
key
:
string
,
item
:
ItemDescriptor
,
)
:
Promise
<
boolean
>
;
}
Index
Methods
apply
Changes
get
get
All
get
Debug
Override?
init
load
Cached
off
on
preset
Flags
set
Bootstrap
upsert
Methods
apply
Changes
applyChanges
(
context
:
Context
,
updates
:
{
[
key
:
string
]:
ItemDescriptor
}
,
type
:
PayloadType
,
)
:
Promise
<
void
>
Parameters
context
:
Context
updates
:
{
[
key
:
string
]:
ItemDescriptor
}
type
:
PayloadType
Returns
Promise
<
void
>
get
get
(
key
:
string
)
:
ItemDescriptor
|
undefined
Parameters
key
:
string
Returns
ItemDescriptor
|
undefined
get
All
getAll
()
:
{
[
key
:
string
]:
ItemDescriptor
}
Returns
{
[
key
:
string
]:
ItemDescriptor
}
Optional
get
Debug
Override
getDebugOverride
?
()
:
LDDebugOverride
Returns
LDDebugOverride
init
init
(
context
:
Context
,
newFlags
:
{
[
key
:
string
]:
ItemDescriptor
}
,
)
:
Promise
<
void
>
Parameters
context
:
Context
newFlags
:
{
[
key
:
string
]:
ItemDescriptor
}
Returns
Promise
<
void
>
load
Cached
loadCached
(
context
:
Context
)
:
Promise
<
boolean
>
Parameters
context
:
Context
Returns
Promise
<
boolean
>
off
off
(
callback
:
FlagsChangeCallback
)
:
void
Parameters
callback
:
FlagsChangeCallback
Returns
void
on
on
(
callback
:
FlagsChangeCallback
)
:
void
Parameters
callback
:
FlagsChangeCallback
Returns
void
preset
Flags
presetFlags
(
newFlags
:
{
[
key
:
string
]:
ItemDescriptor
}
)
:
void
Parameters
newFlags
:
{
[
key
:
string
]:
ItemDescriptor
}
Returns
void
set
Bootstrap
setBootstrap
(
context
:
Context
,
newFlags
:
{
[
key
:
string
]:
ItemDescriptor
}
,
)
:
void
Parameters
context
:
Context
newFlags
:
{
[
key
:
string
]:
ItemDescriptor
}
Returns
void
upsert
upsert
(
context
:
Context
,
key
:
string
,
item
:
ItemDescriptor
)
:
Promise
<
boolean
>
Parameters
context
:
Context
key
:
string
item
:
ItemDescriptor
Returns
Promise
<
boolean
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
apply
Changes
get
get
All
get
Debug
Override
init
load
Cached
off
on
preset
Flags
set
Bootstrap
upsert
@launchdarkly/react-native-client-sdk - v10.23.2
Loading...