Package com.intercom.api.types
Class CanvasObject.Builder
java.lang.Object
com.intercom.api.types.CanvasObject.Builder
- All Implemented Interfaces:
CanvasObject._FinalStage,CanvasObject.ContentStage
- Enclosing class:
CanvasObject
public static final class CanvasObject.Builder
extends Object
implements CanvasObject.ContentStage, CanvasObject._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionbuild()content(ContentObject content) The content object that will be shown as the UI of the app.contentUrl(String contentUrl) The URL which we make Live Canvas requests to.contentUrl(Optional<String> contentUrl) from(CanvasObject other) storedData(Map<String, Object> storedData) Optional Stored Data that you want to be returned in the next sent request.storedData(Optional<Map<String, Object>> storedData)
-
Method Details
-
from
- Specified by:
fromin interfaceCanvasObject.ContentStage
-
content
The content object that will be shown as the UI of the app. Max Size is 64KB.
- Specified by:
contentin interfaceCanvasObject.ContentStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
storedData
Optional Stored Data that you want to be returned in the next sent request. Max Size is 64KB.
- Specified by:
storedDatain interfaceCanvasObject._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
storedData
- Specified by:
storedDatain interfaceCanvasObject._FinalStage
-
contentUrl
The URL which we make Live Canvas requests to. You must respond to these with a content object. Max size is 64KB.
- Specified by:
contentUrlin interfaceCanvasObject._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contentUrl
- Specified by:
contentUrlin interfaceCanvasObject._FinalStage
-
build
- Specified by:
buildin interfaceCanvasObject._FinalStage
-