getBotFriendshipStatus method

Future<BotFriendshipStatus> getBotFriendshipStatus()

Gets the friendship status between the user and the official account linked to your LINE Login channel.

Using this method requires the "profile" scope.

This method redirects calls to the LINE SDK for the relevant native platform (iOS or Android). If an error happens in the native platform, a PlatformException is thrown. See PlatformException.code and PlatformException.message for error details.

The LINE SDK implementation differs between iOS and Android, which means error codes and messages can also be different. For platform-specific error information, see LineSDKError (iOS) and LineApiError (Android).

Implementation

Future<BotFriendshipStatus> getBotFriendshipStatus() async {
  return await channel
      .invokeMethod('getBotFriendshipStatus')
      .then((value) => BotFriendshipStatus._(_decodeJson(value)));
}