Uses of Class
com.vaadin.flow.component.webshare.ShareContent
Packages that use ShareContent
-
Uses of ShareContent in com.vaadin.flow.component.webshare
Methods in com.vaadin.flow.component.webshare that return ShareContentModifier and TypeMethodDescriptionstatic ShareContentShareContent.create()Creates a new empty content builder.<C extends Component & HasValue<?,String>>
ShareContentShareContent.text(C source) Sets the free-form text of the share payload, taken from thevalueproperty of the given component.Sets the free-form text of the share payload.<C extends Component & HasValue<?,String>>
ShareContentShareContent.title(C source) Sets the title of the share payload, taken from thevalueproperty of the given component (typically an input field).Sets the title of the share payload.<C extends Component & HasValue<?,String>>
ShareContentShareContent.url(C source) Sets the URL of the share payload, taken from thevalueproperty of the given component.Sets the URL of the share payload.Methods in com.vaadin.flow.component.webshare with parameters of type ShareContentModifier and TypeMethodDescriptionvoidWebShareBinding.share(ShareContent content) Invokes the browser's native share sheet with the given content when the underlying trigger fires.voidWebShareBinding.share(ShareContent content, SerializableRunnable onShared, SerializableConsumer<PromiseAction.Error> onError) LikeWebShareBinding.share(ShareContent)but reports the outcome back to the server.