User

public final class User : GetStream.User, UserNameRepresentable, AvatarRepresentable

An advanced Stream user with a name and avatar.

  • Declaration

    Swift

    public var name: String
  • Declaration

    Swift

    public var avatarURL: URL? { get set }
  • Declaration

    Swift

    public var avatarImage: UIImage?
  • Undocumented

    Declaration

    Swift

    public init(name: String, id: String)
  • Undocumented

    Declaration

    Swift

    override public func encode(to encoder: Encoder) throws

Refresh

  • Reloads the user data and returns in a completion block.

    Declaration

    Swift

    public func refresh(completion: @escaping (_ user: User?) -> Void)

Following

  • Checks if the user feed is following to a target.

    Declaration

    Swift

    public func isFollow(toTarget target: FeedId,
                         completion: @escaping (_ isFollow: Bool, _ following: Follower?, _ error: Error?) -> Void)