Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AndroidJNI.IsAssignableFrom

static function IsAssignableFrom(clazz1: IntPtr, clazz2: IntPtr): bool;
static bool IsAssignableFrom(IntPtr clazz1, IntPtr clazz2);
static def IsAssignableFrom(clazz1 as IntPtr, clazz2 as IntPtr) as bool

Description

Determines whether an object of clazz1 can be safely cast to clazz2.