Builder

interface Builder

Builder interface for creating server activations.

Functions

Link copied to clipboard
@NotNull
abstract fun addPermission(@NotNull permission: @NotNull String): @NotNull ServerActivation.Builder
Adds a permission to the activation.
Link copied to clipboard
@NotNull
abstract fun build(): @NotNull ServerActivation
Builds the server activation.
Link copied to clipboard
@NotNull
abstract fun setDefaultDistance(defaultDistance: Int): @NotNull ServerActivation.Builder
Sets the default distance for the activation.
Link copied to clipboard
@NotNull
abstract fun setDistances(@NotNull distances: @NotNull List<Integer>): @NotNull ServerActivation.Builder
Sets the available distances for the activation.
Link copied to clipboard
@NotNull
abstract fun setEncoderInfo(@Nullable encoderInfo: @Nullable CodecInfo): @NotNull ServerActivation.Builder
Sets the encoder information for the activation.
Link copied to clipboard
@NotNull
abstract fun setPermissionDefault(@Nullable permissionDefault: @Nullable PermissionDefault): @NotNull ServerActivation.Builder
Sets the default permission level to be used for permissions registration.
Link copied to clipboard
@NotNull
abstract fun setProximity(proximity: Boolean): @NotNull ServerActivation.Builder
Sets whether the activation has proximity output.
Link copied to clipboard
@NotNull
abstract fun setRequirements(@Nullable requirements: @Nullable ServerActivation.Requirements): @NotNull ServerActivation.Builder
Sets the requirements for the activation.
Link copied to clipboard
@NotNull
abstract fun setStereoSupported(stereoSupported: Boolean): @NotNull ServerActivation.Builder
Sets whether the activation supports stereo audio.
Link copied to clipboard
@NotNull
abstract fun setTransitive(transitive: Boolean): @NotNull ServerActivation.Builder
Sets whether the activation is transitive.