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
- accept → String
-
final, inherited
- contentType → String
-
final, inherited
- dio → Dio
-
final
- hashCode → int
-
The hash code for this object.
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
answerBot(
{required LiveBroadcastItem liveBroadcastItem, required Chatbot chatbot, TimeStore? timeStore}) → Future< void> - Use a Chatbot to answer questions in the liveChat.
-
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> - Download the liveChat history. If a File is specified then the data will be stored there otherwise if a TimeStore is specfied, only history with a timestamp greater than that given by the TimeStore will be diwnloaded.
-
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> - Send a message to the liveChat session.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited