Get Icon File Transfer Configuration / Get Image File Transfer Configuration

Menu: getNotifyIconAdaptive

Flutter Example:

/// Get data transfer configuration event number
getDataTranConfig(
  evtBase: _VBusEvtBase.base_app_get,
  evtType: _VBusEvtType.app_get_data_tran_configure
),

/// Get data transfer configuration
libManager.send(evt: CmdEvtType.getDataTranConfig, json: jsonEncode(json));

JSON Fields Sent by the App:

Field Name Field Type Field Description
type int Icon type corresponding to the activity type
0: Invalid
1: Small icon for activity
2: Large icon for activity
3: Animated icon for activity
4: Variable-sized icons for activity
5: Smallest icon for activity
evt_type int Event type
0: Invalid
For example, 1: SMS, 2: Email, 3: WeChat, etc.
sport_type int Activity type
0: Invalid
Activity mode type
1: Walking, 2: Running, etc.

Example:

{
  "type": 1,
  "evt_type": 1,
  "sport_type": 1
}

JSON Fields Received by the App:

Field Name Field Type Field Description
err_code int Error code
0: Normal
Non-zero: Error
type int Icon type corresponding to the activity type
0: Invalid
1: Small icon for activity
2: Large icon for activity
3: Animated icon for activity
4: Medium-sized icons for activity
evt_type int Event type
0: Invalid
For example, 1: SMS, 2: Email, 3: WeChat, etc.
sport_type int Activity type
0: Invalid
Activity mode type, 1: Walking, 2: Running, etc.
icon_width int Width required by the firmware icon (determined by type and evt_type/sport_type)
icon_height int Height required by the firmware icon (determined by type and evt_type/sport_type)
format int Color format
block_size int Compression block size
big_sports_num int Number of big sports icons
msg_num int Number of message icons
small_sports_and_animation_num int Number of small sports and animation icons
medium_num int Number of medium-sized icons

Example:

{
  "err_code": 0,
  "type": 1,
  "evt_type": 1,
  "sport_type": 1,
  "icon_width": 50,
  "icon_height": 50,
  "format": 133,
  "block_size": 1024,
  "big_sports_num": 5,
  "msg_num": 0,
  "small_sports_and_animation_num": 0,
  "medium_num": 0
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by GitbookModify Date: 2025-04-30 09:32:44

results matching ""

    No results matching ""