Chat class Null safety
A liveChatMessage resource represents a chat message in a YouTube live chat. The resource can contain details about several types of messages, including a newly posted text message or fan funding event.
The live chat feature is enabled by default for live broadcasts and is available while the live event is active. (After the event ends, live chat is no longer available for that event.)
Constructors
Properties
Methods
-
answerBot(
{required LiveBroadcastItem liveBroadcastItem, required Chatbot chatbot, TimeStore? timeStore}) → Future< void> -
buildParts(
List< String> partList, String part) → String -
inherited
-
delete(
{required String id}) → Future< void> - Deletes a chat message. The API request must be authorized by the channel owner or a moderator of the live chat.
-
downloadHistory(
{required LiveBroadcastItem liveBroadcastItem, File? file, TimeStore? timeStore}) → Future< void> -
insert(
{required Map< String, dynamic> body, String part = 'snippet,status,contentDetails', List<String> partList = const []}) → Future<LiveChatMessage> - Adds a message to a live chat.
-
list(
{required String liveChatId, String part = 'snippet,status,contentDetails', List< String> partList = const [], String? hl, int? maxResults, String? pageToken, int? profileImageSize}) → Future<LiveChatMessageListResponse> - Lists live chat messages for a specific chat.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
send(
{required String message, String? chatId, LiveBroadcastItem? liveBroadcastItem}) → Future< void> -
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited