1// Messages used when events happen in the Tiles system. 2syntax = "proto3"; 3 4package androidx.wear.tiles.testing.proto; 5 6 7option java_package = "androidx.wear.tiles.testing.proto"; 8option java_outer_classname = "EventProto"; 9 10// Event fired when a tile has been added to the carousel. 11message TileAddEvent { 12 // The ID of the tile added to the carousel. 13 uint32 tile_id = 1; 14} 15 16// Event fired when a tile has been removed from the carousel. 17message TileRemoveEvent { 18 // The ID of the tile removed from the carousel. 19 uint32 tile_id = 1; 20} 21 22// Event fired when a tile is swiped to by the user (i.e. it's visible on 23// screen). 24message TileEnterEvent { 25 // The ID of the entered tile. 26 uint32 tile_id = 1; 27} 28 29// Event fired when a tile is swiped away from by the user (i.e. it's no longer 30// visible on screen). 31message TileLeaveEvent { 32 // The ID of the tile. 33 uint32 tile_id = 1; 34} 35