(clazz: any)
| 79 | } |
| 80 | |
| 81 | export function setFragmentClass(clazz: any) { |
| 82 | if (fragmentClass) { |
| 83 | throw new Error('Fragment class already initialized'); |
| 84 | } |
| 85 | |
| 86 | if (isEmbedded()) { |
| 87 | attachEmbeddableFragmentCallbacks(); |
| 88 | } |
| 89 | |
| 90 | fragmentClass = clazz; |
| 91 | } |
| 92 | |
| 93 | function attachEmbeddableFragmentCallbacks() { |
| 94 | const Callbacks = com.tns.embedding.EmbeddableFragmentCallbacks.extend({ |
no test coverage detected