public static final class ActivityPostContent.Builder
extends java.lang.Object
ActivityPostContent
immutable object.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ActivityPostContent |
build() |
ActivityPostContent.Builder |
withButton(java.lang.String title,
java.lang.String action)
Set button title and action.
|
ActivityPostContent.Builder |
withImage(android.graphics.Bitmap image)
Creates a builder instance with the image.
|
ActivityPostContent.Builder |
withText(java.lang.String text) |
ActivityPostContent.Builder |
withVideo(byte[] video)
Creates a builder instance with the video.
|
public ActivityPostContent.Builder withText(java.lang.String text)
public ActivityPostContent.Builder withImage(android.graphics.Bitmap image)
image
- image to use.public ActivityPostContent.Builder withVideo(byte[] video)
video
- image to use.public ActivityPostContent.Builder withButton(java.lang.String title, java.lang.String action)
title
- Button titleaction
- Button onClick actionActivityPostContent.Builder
public ActivityPostContent build()
(c) Copyright GetSocial BV, 2018. All Rights Reserved.