(object: any, classNameValue: string)
| 2216 | } |
| 2217 | |
| 2218 | function isKindOf(object: any, classNameValue: string): boolean { |
| 2219 | const klass = safeCall(() => NSClassFromString(classNameValue), null); |
| 2220 | return Boolean( |
| 2221 | klass && |
| 2222 | object && |
| 2223 | typeof object.isKindOfClass === "function" && |
| 2224 | object.isKindOfClass(klass), |
| 2225 | ); |
| 2226 | } |
| 2227 | |
| 2228 | function nativeScriptViewType(view: View): string { |
| 2229 | return stringValue((view as any).typeName) || constructorName(view); |
no test coverage detected