# Interface NativeBinary

All Superinterfaces:
  `Binary`

All Known Subinterfaces:
  `NativeExecutableBinary, NativeLibraryBinary, PrebuiltSharedLibraryBinary, PrebuiltStaticLibraryBinary, SharedLibraryBinary, StaticLibraryBinary`

@Incubating @Deprecated public interface NativeBinary extends Binary
Deprecated.
The Gradle software model is deprecated and will be removed in Gradle 10. Use the new component model (e.g. `cpp-application`, `cpp-library`, `swift-application`, `swift-library`, `xctest`) instead.
Represents a particular binary artifact.

Since:
  2.2

- ## Method Summary

  Modifier and Type
  Method
  Description
  `BuildType`
  `getBuildType()`
  Deprecated.
  Returns the `BuildType` used to construct this binary.
  `Flavor`
  `getFlavor()`
  Deprecated.
  The `Flavor` that this binary was built with.
  `NativePlatform`
  `getTargetPlatform()`
  Deprecated.
  Returns the `NativePlatform` that this binary is targeted to run on.

  ### Methods inherited from interface Binary

  `getDisplayName`

- ## Method Details

  - ### getFlavor

    Flavor getFlavor()
    Deprecated.
    The `Flavor` that this binary was built with.
    Since:
      2.2

  - ### getTargetPlatform

    NativePlatform getTargetPlatform()
    Deprecated.
    Returns the `NativePlatform` that this binary is targeted to run on.
    Since:
      2.2

  - ### getBuildType

    BuildType getBuildType()
    Deprecated.
    Returns the `BuildType` used to construct this binary.
    Since:
      2.2