Class ActivityButton

java.lang.Object
de.jcm.discordgamesdk.activity.ActivityButton

public class ActivityButton extends Object

A structure used for custom buttons

This structure is not documented in the Game SDK, but is documented in the Gateway API

See Also:
  • Constructor Details

    • ActivityButton

      public ActivityButton()
    • ActivityButton

      public ActivityButton(String label, String url)
      Construct a new ActivityButton
      Parameters:
      label - The text displayed on the button
      url - Link that is clicked to
  • Method Details

    • getLabel

      public String getLabel()
      Get a label
      Returns:
      button label
    • setLabel

      public void setLabel(String label)
      Set a label
      Parameters:
      label - The text displayed on the button
    • getUrl

      public String getUrl()
      Get a url
      Returns:
      button url
    • setUrl

      public void setUrl(String url)
      Set a url
      Parameters:
      url - Link that is clicked to