Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24099] Windows: Mix WinRT APIs with Titanium APIs

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2016-12-09T00:29:18.000+0000
Affected Version/sRelease 5.4.0
Fix Version/sRelease 6.1.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2016-11-04T00:37:52.000+0000
Updated2017-05-02T02:13:51.000+0000

Description

Mix and match Hyperloop WinRT APIs and Titanium APIs together. For instance calling Titanium APIs from a native event callback, or calling Native APIs inside a callback registered with Titanium APIs. Also, we might want to mix and match Titanium.UI.View and its subclasses with any WinRT API expecting a Windows.UI.Xaml.UIElement.
var win = Ti.UI.createWindow({}),
    TextBlock = require('Windows.UI.Xaml.Controls.TextBlock'),
    text = new TextBlock();

text.Text = "Hello, world!";

win.add(text);
win.open();

Attachments

FileDateSize
error.png2017-04-19T20:30:05.000+000060261

Comments

  1. Kota Iguchi 2016-12-07

    https://github.com/appcelerator/titanium_mobile_windows/pull/899
  2. Abir Mukherjee 2017-04-19

    [~kota] just adding to the ticket the error that was seen. For reference, this was the environment: Node Version: 6.10.1 NPM Version: 4.4.4 Appc CLI: 6.2.0 Appc CLI NPM: 4.2.9 Titanium SDK version: 6.1.0 Appcelerator Studio, build: 4.8.1.201612050850 Hyperloop 2.1.0 !error.png|thumbnail!
  3. Kota Iguchi 2017-04-24

    Just removed "Hyperloop 2.1.0" from fixVersion because this ticket is actually depending on SDK 6.1.0. There's nothing to fix for Hyperloop module itself.
  4. Kota Iguchi 2017-04-29

    This ticket can be closed once we resolve TIMOB-24595.

JSON Source