EDataServer.SourceRefresh¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c/en |
Whether to periodically refresh |
||
r/w/c/en |
Whether to enable refresh on metered network |
||
r/w/c/en |
Refresh interval in minutes |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class EDataServer.SourceRefresh(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Contains only private data that should be read and manipulated using the functions below.
New in version 3.6.
- get_enabled()¶
- Returns:
whether periodic refresh is enabled
- Return type:
Returns whether to periodically fetch updates from a remote server.
The refresh interval is determined by the
EDataServer.SourceRefresh
:interval-minutes
property.New in version 3.6.
- get_enabled_on_metered_network()¶
- Returns:
whether can refresh content on metered network
- Return type:
Returns whether can refresh content on metered network.
The self itself doesn’t use this option, it’s up to the self user to determine what kind of connection is used and then decide whether refresh, or other expensive network operations, can be done.
New in version 3.50.
- get_interval_minutes()¶
- Returns:
the interval in minutes
- Return type:
Returns the interval for fetching updates from a remote server.
Note this value is only effective when the
EDataServer.SourceRefresh
:enabled
property isTrue
.New in version 3.6.
- set_enabled(enabled)¶
- Parameters:
enabled (
bool
) – whether to enable periodic refresh
Sets whether to periodically fetch updates from a remote server.
The refresh interval is determined by the
EDataServer.SourceRefresh
:interval-minutes
property.New in version 3.6.
- set_enabled_on_metered_network(enabled)¶
- Parameters:
enabled (
bool
) – whether can refresh content on metered network
Sets whether can refresh content on metered network.
See
EDataServer.SourceRefresh.get_enabled_on_metered_network
() for more information about what it means.New in version 3.50.
- set_interval_minutes(interval_minutes)¶
- Parameters:
interval_minutes (
int
) – the interval in minutes
Sets the interval for fetching updates from a remote server.
Note this value is only effective when the
EDataServer.SourceRefresh
:enabled
property isTrue
.New in version 3.6.
Property Details¶
- EDataServer.SourceRefresh.props.enabled¶
-
Whether to periodically refresh
- EDataServer.SourceRefresh.props.enabled_on_metered_network¶
- Name:
enabled-on-metered-network
- Type:
- Default Value:
- Flags:
Whether to enable refresh on metered network