コード例 #1
0
        public void CustomActorImplIsRelayoutEnabled()
        {
            tlog.Debug(tag, $"CustomActorImplIsRelayoutEnabled START");

            using (View view = new View())
            {
                var testingTarget = NDalic.GetImplementation(view);
                Assert.IsNotNull(testingTarget, "Should be not null!");
                Assert.IsInstanceOf <CustomActorImpl>(testingTarget, "Should be an Instance of CustomActorImpl!");

                tlog.Debug(tag, "getCPtr : " + CustomActorImpl.getCPtr(testingTarget));

                var result = testingTarget.IsRelayoutEnabled();
                tlog.Debug(tag, "IsRelayoutEnabled : " + result);

                testingTarget.Dispose();
            }

            tlog.Debug(tag, $"CustomActorImplIsRelayoutEnabled END (OK)");
        }
コード例 #2
0
 public CustomActor(CustomActorImpl implementation) : this(Interop.CustomActorImpl.NewCustomActor(CustomActorImpl.getCPtr(implementation)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }